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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin471
RA = 118.055, Dec = 33.232
tmin = 361411201, tmax = 361670401
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='981880', job_status='RUN', time_executed='2021-08-28 18:14:02.457923', time_epoch_executed='1630199642.46' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981880/ft1_4FGL_J0752.2+3313_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981880/ft2_4FGL_J0752.2+3313_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981880/ft1_4FGL_J0752.2+3313_daily_bin471.fits outfile=/scratch/kocevski/981880/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin471.fits ra=118.055 dec=33.232 rad=12.0 tmin=361411201.0 tmax=361670401.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 6.12
user 3.30
sys 2.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/981880/ft2_4FGL_J0752.2+3313_daily_bin471.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/981880/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin471.fits evtable="EVENTS" outfile="/scratch/kocevski/981880/ft1_filtered_4FGL_J0752.2+3313_daily_bin471.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 3.27
user 0.34
sys 2.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981880/ft1_filtered_4FGL_J0752.2+3313_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/981880/ft2_4FGL_J0752.2+3313_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/981880/ltcube_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.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/981880/ft2_4FGL_J0752.2+3313_daily_bin471.fits
.....................!
real 14.72
user 11.61
sys 3.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981880/ft1_filtered_4FGL_J0752.2+3313_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/981880/ft2_4FGL_J0752.2+3313_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/981880/ltcube_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.fits outfile=/scratch/kocevski/981880/expmap_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.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/981880/ltcube_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.fits
.....................!
real 193.38
user 185.16
sys 7.89

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/981880/ft1_filtered_4FGL_J0752.2+3313_daily_bin471.fits scfile=/scratch/kocevski/981880/ft2_4FGL_J0752.2+3313_daily_bin471.fits outfile=/scratch/kocevski/981880/cmap_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.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 2.93
user 0.38
sys 2.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981880/ft1_filtered_4FGL_J0752.2+3313_daily_bin471.fits scfile=/scratch/kocevski/981880/ft2_4FGL_J0752.2+3313_daily_bin471.fits outfile=/scratch/kocevski/981880/cmap_HighResolution_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.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 2.90
user 0.39
sys 2.50

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/981880/ft1_filtered_4FGL_J0752.2+3313_daily_bin471.fits', '/scratch/kocevski/981880/ft2_4FGL_J0752.2+3313_daily_bin471.fits', expMap='/scratch/kocevski/981880/expmap_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.fits', expCube='/scratch/kocevski/981880/ltcube_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/981880/Model_4FGL_J0752.2+3313_daily_bin471.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/981880/ft1_filtered_4FGL_J0752.2+3313_daily_bin471.fits
Spacecraft file(s): /scratch/kocevski/981880/ft2_4FGL_J0752.2+3313_daily_bin471.fits
Exposure map: /scratch/kocevski/981880/expmap_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.fits
Exposure cube: /scratch/kocevski/981880/ltcube_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/981880/Model_4FGL_J0752.2+3313_daily_bin471.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) = 7583.49472457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59328       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4183       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.086       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48908E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .60222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13379E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7726       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99770       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0488       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=   7583.386     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2129 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59461        .70257       -.40168E-06   -.10637E-02
   2  Prefactor     .10000E-03    2.9753        .48060E-07** at limit **
   3  Prefactor     .10000E-03    11.622       -.16096E-06** at limit **
   4  norm          5.4206        4.1151       -.27394E-06    .19331E-03
   5  Prefactor     .10000E-03    9.8941        .11045E-06** at limit **
   6  Prefactor     .10000E-03    22.145       -.10914E-05** at limit **
   7  Prefactor     12.088        18.259        .50374E-06    .11360E-03
   8  Prefactor     .10005E-03    34.071       -.27566E-05** at limit **
   9  norm          1.9910        6.1920       -.12405E-05    .33275E-03
  10  Prefactor     .10000E-03    3.6888       -.40620E-07** at limit **
  11  Prefactor     .10000E-03    2.6057       -.39988E-07** at limit **
  12  Prefactor     .10000E-03    26.907        .17197E-05** at limit **
  13  norm          .60217        .42239        .18131E-07    .30561E-03
  14  Prefactor     .10000E-03    14.544        .28762E-06** at limit **
  15  Prefactor     .10000E-03    5.5552       -.15365E-07** at limit **
  16  Prefactor     .10000E-03    42.246        .15833E-04** at limit **
  17  Prefactor     3.0718        32.437        .23945E-05    .10593E-03
  18  Prefactor     2.7718        2.3335        .10598E-06    .40601E-03
  19  Normalizat    .99745        .17591        .99824E-06    .30136E-03
  20  Prefactor     1.0489        .12204        .15936E-07    .29718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.594606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.42064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.088
  Prefactor  = 0.000100049
  norm       = 1.99099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.602173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.0718
  Prefactor  = 2.77176
  Normalizat = 0.997445
  Prefactor  = 1.04893
 **********
 **   18 **HESSE 
 **********

 FCN=   7583.386     FROM HESSE     STATUS=OK           301 CALLS     2430 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59461        .68392        .78805E-03   -1.5554    
   2  Prefactor     .10000E-03    3.0023        .14662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4206        4.1363        .13714E-03   -1.5242    
   5  Prefactor     .10000E-03    9.8986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.088        18.329        .11523E-03   -1.5012    
   8  Prefactor     .10005E-03    33.226        .13355       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9910        6.1111        .29358E-03   -1.5426    
  10  Prefactor     .10000E-03    3.7196        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6705        .27423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60217        .41386        .45513E-04   -1.5553    
  14  Prefactor     .10000E-03    14.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.455        .36569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0718        33.816        .23164E-03   -1.5357    
  18  Prefactor     2.7718        2.2769        .11407E-03   -1.5375    
  19  Normalizat    .99745        .20175        .27614E-03   -.93116    
  20  Prefactor     1.0489        .14096        .19358E-03   -.91116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77174e-10
Minuit parameter uncertainties:
  1  0.683929
  2  1.28821e-05
  3  3.1017e-05
  4  4.13647
  5  2.12592e-05
  6  4.38975e-06
  7  18.3379
  8  0.00256495
  9  6.11301
  10  2.59988e-05
  11  1.12609e-05
  12  0.000150541
  13  0.413858
  14  2.61554e-05
  15  2.49938e-06
  16  0.00042142
  17  20.3981
  18  2.27694
  19  0.201907
  20  0.141013
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.991e+00  6.113e+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

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.049e+00  1.410e-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:  9.974e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 118.055 33.232
Photon Flux Upper Limit: 5.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981880/likelihoodResults_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.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) = 7583.38599619
delta logL = 0.000375222646653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7583.38595029
delta logL = 0.00042112497249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9833       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3584       1.0000          .0000       5.0000    
     3 'Normalizat'    .99713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0492       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=   7583.386     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      257 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9977        6.1608        .29428E-03    .10237E-04
   2  alpha         2.3628        1.6880        .55738E-01    .17812E-05
   3  Normalizat    .99708        .19539        .27618E-03   -.51866E-05
   4  Prefactor     1.0491        .14053        .19357E-03    .22905E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9977
  alpha      = 2.36282
  Normalizat = 0.997084
  Prefactor  = 1.04907
 **********
 **   18 **HESSE 
 **********

 FCN=   7583.386     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9977        6.0978        .11771E-04   -1.5425    
   2  alpha         2.3628        1.6762        .22295E-02   -.54898E-01
   3  Normalizat    .99708        .19558        .11047E-04   -.93128    
   4  Prefactor     1.0491        .14064        .77430E-05   -.91111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21653e-12
Minuit parameter uncertainties:
  1  6.09966
  2  1.83777
  3  0.195723
  4  0.140693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981880': 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) = 7583.38594293
delta logL = 0.000428489006481

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.998e+00  6.100e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.363e+00  1.838e+00  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.049e+00  1.407e-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:  9.971e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 118.055 33.232

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/981880/cmap_HighResolution_361411201_361670401_4FGL_J0752.2+3313_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2021-08-28 18:26:37.915924', job_id='981880', GAL2='1.05', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630200397.92', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.28e-04', ts2='0.13', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='471' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:26:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 981880: <4FGL_J0752.2+3313_daily_bin471> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin471> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 28 18:10:27 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:10:29 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:10:29 2021
Terminated at Sat Aug 28 18:26:39 2021
Results reported at Sat Aug 28 18:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin471 118.055 33.232 361411201 361670401 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 :                                   791.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

