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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin62
RA = 110.488, Dec = 71.3405
tmin = 255398401, tmax = 255657601
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='288112', job_status='RUN', time_executed='2021-08-27 03:57:49.805426', time_epoch_executed='1630061869.81' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='62'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288112/ft1_4FGL_J0721.9+7120_daily_bin62.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288112/ft2_4FGL_J0721.9+7120_daily_bin62.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288112/ft1_4FGL_J0721.9+7120_daily_bin62.fits outfile=/scratch/kocevski/288112/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin62.fits ra=110.488 dec=71.3405 rad=12.0 tmin=255398401.0 tmax=255657601.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.93
user 1.67
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288112/ft1_filtered_4FGL_J0721.9+7120_daily_bin62.fits" evtable="EVENTS" scfile=/scratch/kocevski/288112/ft2_4FGL_J0721.9+7120_daily_bin62.fits sctable="SC_DATA" outfile=/scratch/kocevski/288112/ltcube_255398401_255657601_4FGL_J0721.9+7120_daily_bin62.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/288112/ft2_4FGL_J0721.9+7120_daily_bin62.fits
.....................!
real 13.02
user 12.07
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288112/ft1_filtered_4FGL_J0721.9+7120_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/288112/ft2_4FGL_J0721.9+7120_daily_bin62.fits sctable="SC_DATA" expcube=/scratch/kocevski/288112/ltcube_255398401_255657601_4FGL_J0721.9+7120_daily_bin62.fits outfile=/scratch/kocevski/288112/expmap_255398401_255657601_4FGL_J0721.9+7120_daily_bin62.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/288112/ltcube_255398401_255657601_4FGL_J0721.9+7120_daily_bin62.fits
.....................!
real 191.30
user 186.13
sys 4.75

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

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

This is gtbin version HEAD
real 0.85
user 0.37
sys 0.44

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

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

This is gtbin version HEAD
real 0.83
user 0.38
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28801E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.016       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .38355E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .75865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.064       1.0000         .10000E-03   10000.    
    10 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.445       1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.685       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1928       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.130       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29387       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85286       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0605       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=   7830.811     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     1982 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.692        .48567E-05** at limit **
   2  Prefactor     .12203E-03    40.789       -.94458E-05** at limit **
   3  Prefactor     21.993        21.086       -.11488E-04    .63994E-05
   4  Prefactor     .10000E-03    21.090        .16918E-05** at limit **
   5  Prefactor     .10000E-03    184.43        .11033E-05** at limit **
   6  norm          .10000E-03    6.7799        .65162E-07** at limit **
   7  norm          .75877        .48115        .10018E-06    .73847E-03
   8  Prefactor     .10000E-03    52.682        .42993E-05** at limit **
   9  Prefactor     72.069        35.585       -.38535E-05    .36827E-04
  10  norm          .10000E-03    6.4146        .21233E-06** at limit **
  11  Prefactor     11.449        13.878       -.84994E-06    .15329E-04
  12  Prefactor     57.735        36.538       -.27529E-04    .23828E-04
  13  norm          4.1932        2.8904       -.60454E-06   -.23551E-03
  14  Prefactor     .10000E-03    2.7534        .27230E-06** at limit **
  15  Prefactor     .10000E-03    .56536       -.75717E-07** at limit **
  16  norm          5.7531        2.5049        .56479E-06   -.48673E-04
  17  Prefactor     .10000E-03    21.250       -.17592E-05** at limit **
  18  Prefactor     25.109        22.417       -.95257E-05    .14510E-04
  19  Prefactor     .35628        6.0578        .26469E-06   -.60946E-03
  20  Normalizat    .85285        .19553        .10805E-04    .12551E-03
  21  Prefactor     1.0604        .10939       -.11918E-05    .10461E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00012203
  Prefactor  = 21.9932
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.758773
  Prefactor  = 0.0001
  Prefactor  = 72.0693
  norm       = 0.0001
  Prefactor  = 11.4493
  Prefactor  = 57.7348
  norm       = 4.19325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.7531
  Prefactor  = 0.0001
  Prefactor  = 25.1095
  Prefactor  = 0.356276
  Normalizat = 0.852853
  Prefactor  = 1.0604
 **********
 **   18 **HESSE 
 **********

 FCN=   7830.811     FROM HESSE     STATUS=OK           325 CALLS     2307 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12203E-03    36.600        .14816       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.993        21.104        .85366E-04   -1.4770    
   4  Prefactor     .10000E-03    21.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    190.05        .42565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .75877        .49297        .46670E-03   -1.5534    
   8  Prefactor     .10000E-03    52.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     72.069        35.708        .47291E-04   -1.4008    
  10  norm          .10000E-03    6.4161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.449        13.871        .11842E-03   -1.5031    
  12  Prefactor     57.735        36.556        .52820E-04   -1.4187    
  13  norm          4.1932        2.8933        .11918E-03   -1.5298    
  14  Prefactor     .10000E-03    2.8156        .14338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .57850        .12978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7531        2.5098        .83526E-04   -1.5228    
  17  Prefactor     .10000E-03    21.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.109        22.422        .79910E-04   -1.4705    
  19  Prefactor     .35628        44.743        .42279E-02   -1.5589    
  20  Normalizat    .85285        .22184        .33311E-03   -.98137    
  21  Prefactor     1.0604        .12510        .18113E-03   -.90742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89973e-09
Minuit parameter uncertainties:
  1  9.78675e-05
  2  0.0568248
  3  21.1109
  4  0.000251207
  5  0.00128956
  6  1.87073e-05
  7  0.492977
  8  4.95666e-05
  9  35.7186
  10  5.41555e-05
  11  13.875
  12  36.5703
  13  2.89338
  14  4.53946e-05
  15  5.45238e-06
  16  2.50981
  17  6.44876e-05
  18  22.4294
  19  7.99015
  20  0.222073
  21  0.125131
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  7.588e-01  4.930e-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.060e+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.529e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.36
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.40e-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) = 7830.13367512
delta logL = 0.677118329548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7830.12852489
delta logL = 0.682268560892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45692       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3088       1.0000          .0000       5.0000    
     3 'Normalizat'    .87095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0569       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=   7830.129     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45691        .33061        .93705E-02   -.41707E-02
   2  alpha         1.3088        .35099        .33048       -.45378E-04
   3  Normalizat    .87096        .17866        .74605E-01    .15981E-03
   4  Prefactor     1.0569        .10765        .39521E-01   -.60143E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.456913
  alpha      = 1.30884
  Normalizat = 0.870965
  Prefactor  = 1.05692
 **********
 **   18 **HESSE 
 **********

 FCN=   7830.129     FROM HESSE     STATUS=OK            35 CALLS      249 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45691        .47774        .39701E-03   -1.5573    
   2  alpha         1.3088        .54295        .13029E-01   -.49663    
   3  Normalizat    .87096        .20237        .33017E-03   -.97488    
   4  Prefactor     1.0569        .12217        .18147E-03   -.90855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53115e-09
Minuit parameter uncertainties:
  1  0.477739
  2  0.548631
  3  0.202549
  4  0.122204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288112': 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) = 7830.12852488
delta logL = 0.682268566468

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.569e-01  4.777e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.309e+00  5.486e-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.057e+00  1.222e-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.710e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.72
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.31 +/- 0.55
Photon Flux (Free Index): 1.51e-08 +/- 1.55e-08
Energy Flux (Free Index): 5.08e-05 +/- 5.66e-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/288112/cmap_HighResolution_255398401_255657601_4FGL_J0721.9+7120_daily_bin62.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='5.08e-05', photon_flux_error='2.35e-08', dlogl='6.82e-01', energy_flux='2.15e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-08-27 04:09:31.698364', photon_index_error2='0.55', photon_index2='1.31', ts='14.36', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.66e-05', EG='0.85', time_epoch_completed='1630062571.7', return_code='0', job_id='288112', GAL2='1.06', EG2='0.87', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.55e-08', ts2='15.72', photon_index='1.99' WHERE bin_id='62' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 288112: <4FGL_J0721.9+7120_daily_bin62> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin62 110.488 71.3405 255398401 255657601 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 :                                   703.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

