/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: Dan/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 138 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 = 17515
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0721.3+0405_weekly_bin712
RA = 110.348, Dec = 4.0914
tmin = 669600001, tmax = 670204801
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='429992', job_status='RUN', time_executed='2022-03-29 04:35:38.199201', time_epoch_executed='1648553738.2' WHERE source_name='4FGL J0721.3+0405' and cadence='weekly' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429992

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429992/ft1_4FGL_J0721.3+0405_weekly_bin712.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429992/ft1_4FGL_J0721.3+0405_weekly_bin712.fits outfile=/scratch/kocevski/429992/ft1_filteredMKT_4FGL_J0721.3+0405_weekly_bin712.fits ra=110.348 dec=4.0914 rad=12.0 tmin=669600001.0 tmax=670204801.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 8.68
user 8.30
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.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/429992/ft1_filteredMKT_4FGL_J0721.3+0405_weekly_bin712.fits evtable="EVENTS" outfile="/scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.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 0.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 3585

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/429992/ltcube_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.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/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits
.....................!
real 32.38
user 31.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/429992/ltcube_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.fits outfile=/scratch/kocevski/429992/expmap_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.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/429992/ltcube_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.fits
.....................!
real 189.47
user 184.77
sys 4.37

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
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 161 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0721.3+0405 @ 110.348 4.0914

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.fits scfile=/scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits outfile=/scratch/kocevski/429992/cmap_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.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.348 yref=4.0914 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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.fits scfile=/scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits outfile=/scratch/kocevski/429992/cmap_HighResolution_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.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.348 yref=4.0914 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429992/Model_4FGL_J0721.3+0405_weekly_bin712.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.fits.....................!
real 543.08
user 540.97
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.fits', '/scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits', expMap='/scratch/kocevski/429992/expmap_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.fits', expCube='/scratch/kocevski/429992/ltcube_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429992/Model_4FGL_J0721.3+0405_weekly_bin712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0721.3+0405'

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  1.260e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  2.436e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
223         beta:  1.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
224           Eb:  4.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/429992/ft1_filtered_4FGL_J0721.3+0405_weekly_bin712.fits
Spacecraft file(s): /scratch/kocevski/429992/ft2_4FGL_J0721.3+0405_weekly_bin712.fits
Exposure map: /scratch/kocevski/429992/expmap_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.fits
Exposure cube: /scratch/kocevski/429992/ltcube_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429992/Model_4FGL_J0721.3+0405_weekly_bin712.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 36430.9619707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2800       1.0000         .10000E-03   10000.    
     2 'norm      '    .99360       1.0000         .10000E-03   10000.    
     3 'norm      '    8.8690       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .33704       1.0000         .10000E-03   10000.    
     8 'norm      '    .42203       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12941E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0723       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6414       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1174       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8142       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   36430.83     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1823 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2813        6.7342       -.22954E-06   -.87819E-04
   2  norm          .99282        3.5512        .10387E-05   -.11056E-02
   3  norm          8.8687        4.1801        .51673E-06   -.22981E-02
   4  norm          .10000E-03    3.6342        .29854E-06** at limit **
   5  Prefactor     .10000E-03    8.6345       -.11214E-05** at limit **
   6  norm          .10000E-03    1.6390       -.37447E-07** at limit **
   7  norm          .33698        .68053        .35850E-06   -.17443E-02
   8  norm          .42216        .70706        .40001E-06   -.28203E-02
   9  Prefactor     7.1901        20.558       -.10755E-04   -.36104E-03
  10  Prefactor     .10000E-03    .93360        .94086E-07** at limit **
  11  Prefactor     8.0716        7.3076        .25451E-07   -.79928E-04
  12  Prefactor     .10000E-03    6.3524        .34231E-05** at limit **
  13  norm          1.6413        .97230        .89810E-07   -.82980E-03
  14  Prefactor     17.992        13.976       -.46359E-06   -.94781E-04
  15  Prefactor     2.1174        2.1343        .11426E-06   -.58172E-03
  16  norm          .10000E-03    5.9567        .28402E-06** at limit **
  17  Prefactor     .10000E-03    5.5285       -.27774E-05** at limit **
  18  Prefactor     7.8137        13.656       -.54965E-06   -.58191E-04
  19  Normalizat    1.1928        .12339       -.10431E-06   -.19494E-03
  20  Prefactor     .99314        .29549E-01   -.90623E-07   -.36613E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.28129
  norm       = 0.992821
  norm       = 8.86874
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.336981
  norm       = 0.422157
  Prefactor  = 7.19009
  Prefactor  = 0.0001
  Prefactor  = 8.07158
  Prefactor  = 0.000100001
  norm       = 1.6413
  Prefactor  = 17.9919
  Prefactor  = 2.11738
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.81368
  Normalizat = 1.1928
  Prefactor  = 0.99314
 **********
 **   18 **HESSE 
 **********

 FCN=   36430.83     FROM HESSE     STATUS=OK           301 CALLS     2124 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2813        6.7003        .13156E-03   -1.5099    
   2  norm          .99282        4.1813        .52572E-03   -1.5509    
   3  norm          8.8687        4.5585        .67295E-03   -1.5112    
   4  norm          .10000E-03    3.6482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .33698        .94529        .20980E-02   -1.5592    
   8  norm          .42216        .75618        .21241E-03   -1.5578    
   9  Prefactor     7.1901        20.982        .14952E-03   -1.5172    
  10  Prefactor     .10000E-03    2.5926        .35715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0716        7.3162        .14112E-03   -1.5140    
  12  Prefactor     .10000E-03    6.4277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6413        .97052        .13747E-03   -1.5452    
  14  Prefactor     17.992        13.993        .94422E-04   -1.4859    
  15  Prefactor     2.1174        2.1473        .26896E-03   -1.5417    
  16  norm          .10000E-03    5.9911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8137        13.699        .14344E-03   -1.5149    
  19  Normalizat    1.1928        .12720        .49955E-03   -.86825    
  20  Prefactor     .99314        .31066E-01    .13759E-03   -.92959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72893e-07
Minuit parameter uncertainties:
  1  6.70086
  2  4.07521
  3  4.55866
  4  9.87183e-06
  5  6.05023e-05
  6  1.27645e-06
  7  0.945331
  8  0.756196
  9  21.0035
  10  2.87679e-05
  11  7.31702
  12  0.000159049
  13  0.970532
  14  13.9955
  15  2.14741
  16  1.44447e-05
  17  0.000110283
  18  13.705
  19  0.127236
  20  0.0310661
Done.

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

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  3.370e-01  9.453e-01  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  2.436e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
223         beta:  1.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
224           Eb:  4.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.931e-01  3.107e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.193e+00  1.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 110.348 4.091
Photon Flux Upper Limit: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429992/likelihoodResults_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.txt

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) = 36430.8207884
delta logL = 0.00736743886227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 36430.8206361
delta logL = 0.00751975722233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34575       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6474       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99327       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   36430.82     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      277 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34583        1.1668        .20114E-02    .11076E-02
   2  alpha         2.6463        1.9053        .10458        .13105E-03
   3  Normalizat    1.1910        .11721        .49988E-03   -.25472E-05
   4  Prefactor     .99328        .29512E-01    .13758E-03   -.52884E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.345828
  alpha      = 2.64634
  Normalizat = 1.19103
  Prefactor  = 0.993276
 **********
 **   18 **HESSE 
 **********

 FCN=   36430.82     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34583        .92735        .80457E-04   -1.5590    
   2  alpha         2.6463        1.6063        .20915E-01    .58571E-01
   3  Normalizat    1.1910        .11739        .19995E-04   -.86881    
   4  Prefactor     .99328        .29503E-01    .55033E-05   -.92954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18761e-11
Minuit parameter uncertainties:
  1  0.927387
  2  1.74511
  3  0.117415
  4  0.0295035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429992': 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) = 36430.8206359
delta logL = 0.00751993401354

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  3.458e-01  9.274e-01  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  2.646e+00  1.745e+00  0.000e+00  5.000e+00 ( 1.000e+00)
223         beta:  1.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
224           Eb:  4.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.933e-01  2.950e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.191e+00  1.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 110.348 4.091

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/429992/cmap_HighResolution_669600001_670204801_4FGL_J0721.3+0405_weekly_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-05', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2022-03-29 05:12:37.764946', job_id='429992', GAL2='0.99', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1648555957.77', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.52e-03', ts2='0.16', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='712' AND source_name='4FGL J0721.3+0405' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 29 05:12:37 PDT 2022

r <slac> at Tue Mar 29 00:50:20 2022
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 29 00:50:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 29 00:50:22 2022
Terminated at Tue Mar 29 01:28:42 2022
Results reported at Tue Mar 29 01:28:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.3+0405_weekly_bin712 110.348 4.0914 669600001 670204801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0721.3+0405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2225.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             387.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2299 sec.
    Turnaround time :                            2302 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 429992: <4FGL_J0721.3+0405_weekly_bin712> in cluster <slac> Done

Job <4FGL_J0721.3+0405_weekly_bin712> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 29 00:06:45 2022
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 29 00:06:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 29 00:06:49 2022
Terminated at Tue Mar 29 05:12:38 2022
Results reported at Tue Mar 29 05:12:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.3+0405_weekly_bin712 110.348 4.0914 669600001 670204801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0721.3+0405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2222.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             94.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18349 sec.
    Turnaround time :                            18353 sec.

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

