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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1
RA = 110.488, Dec = 71.3405
tmin = 239587201, tmax = 239846401
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='286960', job_status='RUN', time_executed='2021-08-27 03:51:59.378831', time_epoch_executed='1630061519.38' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286960

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286960/ft1_4FGL_J0721.9+7120_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286960/ft2_4FGL_J0721.9+7120_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286960/ft1_4FGL_J0721.9+7120_daily_bin1.fits outfile=/scratch/kocevski/286960/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1.fits ra=110.488 dec=71.3405 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.89
user 1.12
sys 0.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286960/ft1_filtered_4FGL_J0721.9+7120_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/286960/ft2_4FGL_J0721.9+7120_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/286960/ltcube_239587201_239846401_4FGL_J0721.9+7120_daily_bin1.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/286960/ft2_4FGL_J0721.9+7120_daily_bin1.fits
.....................!
real 13.44
user 12.39
sys 0.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286960/ft1_filtered_4FGL_J0721.9+7120_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/286960/ft2_4FGL_J0721.9+7120_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/286960/ltcube_239587201_239846401_4FGL_J0721.9+7120_daily_bin1.fits outfile=/scratch/kocevski/286960/expmap_239587201_239846401_4FGL_J0721.9+7120_daily_bin1.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/286960/ltcube_239587201_239846401_4FGL_J0721.9+7120_daily_bin1.fits
.....................!
real 195.87
user 190.03
sys 5.31

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/286960/ft1_filtered_4FGL_J0721.9+7120_daily_bin1.fits scfile=/scratch/kocevski/286960/ft2_4FGL_J0721.9+7120_daily_bin1.fits outfile=/scratch/kocevski/286960/cmap_239587201_239846401_4FGL_J0721.9+7120_daily_bin1.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.11
user 0.36
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286960/ft1_filtered_4FGL_J0721.9+7120_daily_bin1.fits scfile=/scratch/kocevski/286960/ft2_4FGL_J0721.9+7120_daily_bin1.fits outfile=/scratch/kocevski/286960/cmap_HighResolution_239587201_239846401_4FGL_J0721.9+7120_daily_bin1.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.11
user 0.38
sys 0.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3385       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11166E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    29.499       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9284       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16468E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0750       1.0000         .10000E-03   10000.    
    10 'norm      '    .10415E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.937       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1098       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.094       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .66745       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78221       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=   6291.418     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1895 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1979        79.221       -.22874E-04   -.37713E-04
   2  Prefactor     .10000E-03    9.2968       -.32549E-06** at limit **
   3  Prefactor     32.919        21.171        .10239E-05    .42041E-04
   4  Prefactor     16.210        22.522        .85102E-06    .14853E-04
   5  Prefactor     .10000E-03    17.327       -.52287E-05** at limit **
   6  norm          29.496        18.577        .38452E-07   -.19078E-04
   7  norm          2.9281        .80713        .12806E-07    .35709E-03
   8  Prefactor     .10000E-03    64.343        .77678E-05** at limit **
   9  Prefactor     2.0717        64.184       -.43023E-05   -.54033E-04
  10  norm          .10000E-03    14.165        .13395E-04** at limit **
  11  Prefactor     .10000E-03    11.582        .11304E-04** at limit **
  12  Prefactor     10.936        26.640       -.54158E-05   -.38226E-04
  13  norm          2.7037        2.3320       -.22196E-06   -.43977E-03
  14  Prefactor     .10000E-03    2.0860        .20424E-08** at limit **
  15  Prefactor     .10000E-03    .40127        .12451E-07** at limit **
  16  norm          1.1103        1.5252       -.19102E-07    .23167E-05
  17  Prefactor     11.981        26.117       -.35773E-05   -.22084E-05
  18  Prefactor     .10000E-03    12.349       -.19981E-04** at limit **
  19  Prefactor     11.084        13.010       -.67189E-05    .14659E-04
  20  Normalizat    .66746        .15914        .21780E-05    .10674E-03
  21  Prefactor     .78221        .89325E-01    .29510E-06    .25619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.1979
  Prefactor  = 0.0001
  Prefactor  = 32.9193
  Prefactor  = 16.2097
  Prefactor  = 0.0001
  norm       = 29.4957
  norm       = 2.92814
  Prefactor  = 0.0001
  Prefactor  = 2.07175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9363
  norm       = 2.70373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1103
  Prefactor  = 11.9807
  Prefactor  = 0.0001
  Prefactor  = 11.0839
  Normalizat = 0.667465
  Prefactor  = 0.782212
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.418     FROM HESSE     STATUS=OK           321 CALLS     2216 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1979        80.229        .26813E-03   -1.5411    
   2  Prefactor     .10000E-03    9.3022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.919        21.155        .69852E-04   -1.4560    
   4  Prefactor     16.210        22.487        .99410E-04   -1.4903    
   5  Prefactor     .10000E-03    17.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          29.496        18.575        .73766E-04   -1.4621    
   7  norm          2.9281        .80467        .34914E-04   -1.5366    
   8  Prefactor     .10000E-03    64.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0717        64.086        .28674E-03   -1.5420    
  10  norm          .10000E-03    14.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.936        26.676        .12114E-03   -1.5046    
  13  norm          2.7037        2.3285        .10820E-03   -1.5379    
  14  Prefactor     .10000E-03    4.0635        .22202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .40774        .49041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1103        1.4885        .10971E-03   -1.5497    
  17  Prefactor     11.981        26.118        .11576E-03   -1.5016    
  18  Prefactor     .10000E-03    12.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.084        13.006        .12028E-03   -1.5042    
  20  Normalizat    .66746        .18049        .28882E-03   -1.0519    
  21  Prefactor     .78221        .10214        .15868E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74665e-10
Minuit parameter uncertainties:
  1  26.5962
  2  4.43941e-07
  3  21.1598
  4  22.4985
  5  1.05399e-05
  6  18.5783
  7  0.804669
  8  3.65252e-05
  9  23.0716
  10  8.77814e-07
  11  3.34362e-05
  12  26.7047
  13  2.32857
  14  2.88776e-05
  15  1.08758e-06
  16  1.48853
  17  26.1433
  18  3.2127e-05
  19  13.0097
  20  0.180653
  21  0.102165
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.928e+00  8.047e-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:  7.822e-01  1.022e-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.675e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 64.10
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 3.84e-08
Energy Flux (Fixed Index): 8.29e-05 +/- 2.28e-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) = 6291.38395697
delta logL = 0.0339405175646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6291.38297714
delta logL = 0.0349203488067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9411       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9223       1.0000          .0000       5.0000    
     3 'Normalizat'    .67499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78006       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=   6291.383     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9411        .95733        .59208E-02    .83026E-04
   2  alpha         1.9223        .27839        .16965        .20336E-04
   3  Normalizat    .67499        .15066        .64968E-01   -.32761E-04
   4  Prefactor     .78006        .88400E-01    .43457E-01   -.15761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.94112
  alpha      = 1.92233
  Normalizat = 0.674989
  Prefactor  = 0.780063
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.383     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9411        .79820        .35520E-04   -1.5365    
   2  alpha         1.9223        .24077        .72097E-02   -.23318    
   3  Normalizat    .67499        .17151        .28746E-03   -1.0489    
   4  Prefactor     .78006        .10058        .15892E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.637e-11
Minuit parameter uncertainties:
  1  0.798205
  2  0.241166
  3  0.171648
  4  0.100608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286960': 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) = 6291.38297714
delta logL = 0.0349203490805

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.941e+00  7.982e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.922e+00  2.412e-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:  7.801e-01  1.006e-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.750e-01  1.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.16
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.92 +/- 0.24
Photon Flux (Free Index): 1.32e-07 +/- 4.55e-08
Energy Flux (Free Index): 8.91e-05 +/- 3.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/286960/cmap_HighResolution_239587201_239846401_4FGL_J0721.9+7120_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='8.91e-05', photon_flux_error='3.84e-08', dlogl='3.49e-02', energy_flux='8.29e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-08-27 04:02:23.406788', photon_index_error2='0.24', photon_index2='1.92', ts='64.10', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.51e-05', EG='0.67', time_epoch_completed='1630062143.41', return_code='0', job_id='286960', GAL2='0.78', EG2='0.67', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='4.55e-08', ts2='64.16', photon_index='1.99' WHERE bin_id='1' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:02:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 286960: <4FGL_J0721.9+7120_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1 110.488 71.3405 239587201 239846401 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 :                                   631.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             330.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            703 sec.

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

