/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 227 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 = 7480
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0752.2+3313_daily_bin739
RA = 118.055, Dec = 33.232
tmin = 430876801, tmax = 431136001
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='984750', job_status='RUN', time_executed='2021-08-28 18:24:33.125996', time_epoch_executed='1630200273.13' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984750/ft1_4FGL_J0752.2+3313_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984750/ft1_4FGL_J0752.2+3313_daily_bin739.fits outfile=/scratch/kocevski/984750/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin739.fits ra=118.055 dec=33.232 rad=12.0 tmin=430876801.0 tmax=431136001.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.40
user 5.07
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.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/984750/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin739.fits evtable="EVENTS" outfile="/scratch/kocevski/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/984750/ltcube_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.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/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits
.....................!
real 12.39
user 11.88
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/984750/ltcube_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.fits outfile=/scratch/kocevski/984750/expmap_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.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/984750/ltcube_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.fits
.....................!
real 192.15
user 187.14
sys 4.63

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J0752.2+3313 @ 118.055 33.232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.fits scfile=/scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits outfile=/scratch/kocevski/984750/cmap_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.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=118.055 yref=33.232 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.fits scfile=/scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits outfile=/scratch/kocevski/984750/cmap_HighResolution_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.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=118.055 yref=33.232 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984750/Model_4FGL_J0752.2+3313_daily_bin739.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/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.fits....................!
real 73.74
user 72.07
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.fits', '/scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits', expMap='/scratch/kocevski/984750/expmap_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.fits', expCube='/scratch/kocevski/984750/ltcube_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984750/Model_4FGL_J0752.2+3313_daily_bin739.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0752.2+3313'

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  9.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/984750/ft1_filtered_4FGL_J0752.2+3313_daily_bin739.fits
Spacecraft file(s): /scratch/kocevski/984750/ft2_4FGL_J0752.2+3313_daily_bin739.fits
Exposure map: /scratch/kocevski/984750/expmap_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.fits
Exposure cube: /scratch/kocevski/984750/ltcube_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984750/Model_4FGL_J0752.2+3313_daily_bin739.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) = 7061.6469589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5176       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6245       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6209       1.0000         .10000E-03   10000.    
    13 'norm      '    .48902       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30548E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.276       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0611       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4384       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0536       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1303       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7061.646     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2045 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1823        .77759       -.27306E-06   -.21186E-03
   2  Prefactor     7.7501        7.4196       -.99346E-06   -.87975E-04
   3  Prefactor     1.5210        29.102       -.16039E-04   -.14294E-03
   4  norm          .10000E-03    1.2006        .60527E-07** at limit **
   5  Prefactor     .10000E-03    10.027        .19945E-05** at limit **
   6  Prefactor     .10000E-03    6.7976        .17759E-06** at limit **
   7  Prefactor     3.6253        11.914       -.31521E-05   -.75341E-04
   8  Prefactor     .10000E-03    7.8848       -.10930E-05** at limit **
   9  norm          12.249        10.795       -.78917E-06    .67323E-04
  10  Prefactor     .10000E-03    2.5695        .49958E-06** at limit **
  11  Prefactor     2.6749        4.2839        .40435E-06   -.51536E-03
  12  Prefactor     9.5784        27.093       -.39641E-04    .14224E-03
  13  norm          .48896        .62621       -.18187E-06   -.13058E-02
  14  Prefactor     .10000E-03    81.175        .56031E-04** at limit **
  15  Prefactor     22.264        31.582       -.87010E-05    .71055E-04
  16  Prefactor     4.0661        26.128       -.25348E-05   -.24462E-04
  17  Prefactor     .10000E-03    12.561       -.19351E-05** at limit **
  18  Prefactor     2.4380        4.4308       -.75529E-06   -.65322E-03
  19  Normalizat    1.0536        .20012        .41200E-05   -.43310E-04
  20  Prefactor     1.1303        .13531        .13242E-05    .11388E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18226
  Prefactor  = 7.75013
  Prefactor  = 1.52095
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.62528
  Prefactor  = 0.0001
  norm       = 12.2489
  Prefactor  = 0.0001
  Prefactor  = 2.67494
  Prefactor  = 9.57837
  norm       = 0.488962
  Prefactor  = 0.000100003
  Prefactor  = 22.2644
  Prefactor  = 4.06606
  Prefactor  = 0.0001
  Prefactor  = 2.43804
  Normalizat = 1.05356
  Prefactor  = 1.13026
 **********
 **   18 **HESSE 
 **********

 FCN=   7061.646     FROM HESSE     STATUS=OK           297 CALLS     2342 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1823        .75993        .57368E-04   -1.5491    
   2  Prefactor     7.7501        7.4183        .14405E-03   -1.5151    
   3  Prefactor     1.5210        29.796        .34693E-03   -1.5461    
   4  norm          .10000E-03    1.2074        .89898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6253        11.916        .21221E-03   -1.5327    
   8  Prefactor     .10000E-03    7.8851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.249        10.800        .11446E-03   -1.5008    
  10  Prefactor     .10000E-03    2.5793        .13154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6749        4.2288        .20311E-03   -1.5381    
  12  Prefactor     9.5784        27.243        .12920E-03   -1.5089    
  13  norm          .48896        .57571        .66277E-03   -1.5568    
  14  Prefactor     .10000E-03    83.019        .21382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.264        31.639        .84867E-04   -1.4764    
  16  Prefactor     4.0661        22.832        .20008E-03   -1.5305    
  17  Prefactor     .10000E-03    12.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4380        4.2243        .17919E-03   -1.5396    
  19  Normalizat    1.0536        .23066        .29552E-03   -.91257    
  20  Prefactor     1.1303        .15649        .20241E-03   -.88505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04446e-09
Minuit parameter uncertainties:
  1  0.759941
  2  7.41921
  3  13.4711
  4  4.857e-06
  5  4.4059e-05
  6  1.87242e-05
  7  11.9243
  8  1.55592e-05
  9  10.8019
  10  7.74468e-06
  11  4.22926
  12  27.2783
  13  0.575712
  14  0.000961866
  15  31.6627
  16  19.2814
  17  3.72228e-05
  18  4.22485
  19  0.230879
  20  0.156551
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.225e+01  1.080e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.130e+00  1.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.054e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 118.055 33.232
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.54e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.02e-05

TS (Fixed Index): 2.08
Ra Dec: 118.055 33.232
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984750/likelihoodResults_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.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) = 7061.58398125
delta logL = 0.061820136094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7061.58093595
delta logL = 0.0648654339748

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7061.581     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      272 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.524        10.753        .11804E-03    .38004E-03
   2  alpha         2.5837        .78379        .20501E-01    .32613E-04
   3  Normalizat    1.0442        .22099        .29668E-03   -.21030E-03
   4  Prefactor     1.1341        .15563        .20210E-03   -.41182E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5241
  alpha      = 2.58368
  Normalizat = 1.04423
  Prefactor  = 1.13413
 **********
 **   18 **HESSE 
 **********

 FCN=   7061.581     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.524        10.522        .47217E-05   -1.5029    
   2  alpha         2.5837        .76716        .82005E-03    .33477E-01
   3  Normalizat    1.0442        .22114        .11867E-04   -.91563    
   4  Prefactor     1.1341        .15572        .40420E-04   -.88383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82248e-10
Minuit parameter uncertainties:
  1  10.5237
  2  0.779758
  3  0.221338
  4  0.155779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984750': 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) = 7061.580935
delta logL = 0.0648663852244

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.152e+01  1.052e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.584e+00  7.798e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.134e+00  1.558e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.044e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 118.055 33.232
Photon Index (Free Index): 2.58 +/- 0.78
Photon Flux (Free Index): 4.27e-08 +/- 4.01e-08
Energy Flux (Free Index): 1.11e-05 +/- 9.51e-06

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/984750/cmap_HighResolution_430876801_431136001_4FGL_J0752.2+3313_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', comment='SUCCESS', photon_flux='3.54e-08', energy_flux2='1.11e-05', photon_flux_error='3.12e-08', dlogl='6.49e-02', energy_flux='1.15e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-08-28 18:36:07.182113', photon_index_error2='0.78', photon_index2='2.58', ts='2.08', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='9.51e-06', EG='1.05', time_epoch_completed='1630200967.18', return_code='0', job_id='984750', GAL2='1.13', EG2='1.04', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.01e-08', ts2='2.21', photon_index='2.31' WHERE bin_id='739' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:36:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 984750: <4FGL_J0752.2+3313_daily_bin739> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin739> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 18:20:34 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:20:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 18:20:35 2021
Terminated at Sat Aug 28 18:36:07 2021
Results reported at Sat Aug 28 18:36:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin739 118.055 33.232 430876801 431136001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0752.2+3313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

