/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 102 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 = 7469
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0752.2+3313_daily_bin346
RA = 118.055, Dec = 33.232
tmin = 329011201, tmax = 329270401
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='980557', job_status='RUN', time_executed='2021-08-28 18:07:38.781461', time_epoch_executed='1630199258.78' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980557

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980557/ft1_4FGL_J0752.2+3313_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980557/ft2_4FGL_J0752.2+3313_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980557/ft1_4FGL_J0752.2+3313_daily_bin346.fits outfile=/scratch/kocevski/980557/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin346.fits ra=118.055 dec=33.232 rad=12.0 tmin=329011201.0 tmax=329270401.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 3.83
user 3.30
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/980557/ft2_4FGL_J0752.2+3313_daily_bin346.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/980557/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/980557/ft1_filtered_4FGL_J0752.2+3313_daily_bin346.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.83
user 0.33
sys 0.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980557/ft1_filtered_4FGL_J0752.2+3313_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/980557/ft2_4FGL_J0752.2+3313_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/980557/ltcube_329011201_329270401_4FGL_J0752.2+3313_daily_bin346.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/980557/ft2_4FGL_J0752.2+3313_daily_bin346.fits
.....................!
real 12.10
user 11.35
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980557/ft1_filtered_4FGL_J0752.2+3313_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/980557/ft2_4FGL_J0752.2+3313_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/980557/ltcube_329011201_329270401_4FGL_J0752.2+3313_daily_bin346.fits outfile=/scratch/kocevski/980557/expmap_329011201_329270401_4FGL_J0752.2+3313_daily_bin346.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/980557/ltcube_329011201_329270401_4FGL_J0752.2+3313_daily_bin346.fits
.....................!
real 191.89
user 186.61
sys 4.90

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/980557/ft1_filtered_4FGL_J0752.2+3313_daily_bin346.fits scfile=/scratch/kocevski/980557/ft2_4FGL_J0752.2+3313_daily_bin346.fits outfile=/scratch/kocevski/980557/cmap_329011201_329270401_4FGL_J0752.2+3313_daily_bin346.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.85
user 0.38
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980557/ft1_filtered_4FGL_J0752.2+3313_daily_bin346.fits scfile=/scratch/kocevski/980557/ft2_4FGL_J0752.2+3313_daily_bin346.fits outfile=/scratch/kocevski/980557/cmap_HighResolution_329011201_329270401_4FGL_J0752.2+3313_daily_bin346.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.86
user 0.38
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51893       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8163       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.377       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.111       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3236       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.028       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9098       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30538E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0250       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87938       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1583       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=   7327.837     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2123 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .21155        .10038E-06** at limit **
   2  Prefactor     14.661        8.2555       -.19004E-06   -.25947E-03
   3  Prefactor     .60027        8.5673       -.46161E-05   -.19773E-03
   4  norm          1.8174        3.4411       -.13335E-06   -.39463E-03
   5  Prefactor     .10000E-03    30.831        .16578E-05** at limit **
   6  Prefactor     15.377        15.806        .51096E-07   -.47421E-04
   7  Prefactor     .10000E-03    3.1818        .43042E-09** at limit **
   8  Prefactor     18.110        23.990       -.53137E-06   -.15241E-03
   9  norm          2.3226        6.6630        .57518E-05    .19770E-03
  10  Prefactor     .10000E-03    1.5684       -.27672E-08** at limit **
  11  Prefactor     5.5286        4.2712       -.19343E-06   -.73148E-03
  12  Prefactor     28.027        31.584        .49156E-06    .11293E-03
  13  norm          1.9097        .65472       -.78909E-07   -.28405E-02
  14  Prefactor     .10000E-03    10.202        .75200E-07** at limit **
  15  Prefactor     .10000E-03    8.7369       -.59020E-07** at limit **
  16  Prefactor     .10023E-03    40.990       -.14704E-04** at limit **
  17  Prefactor     .10001E-03    39.906       -.35623E-06** at limit **
  18  Prefactor     5.0227        3.4581       -.78278E-06   -.22340E-02
  19  Normalizat    .87941        .19197       -.86415E-06   -.13602E-03
  20  Prefactor     1.1582        .13197        .31797E-06   -.15569E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 14.6607
  Prefactor  = 0.600267
  norm       = 1.81745
  Prefactor  = 0.0001
  Prefactor  = 15.3766
  Prefactor  = 0.0001
  Prefactor  = 18.1104
  norm       = 2.32256
  Prefactor  = 0.0001
  Prefactor  = 5.52862
  Prefactor  = 28.0269
  norm       = 1.9097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100225
  Prefactor  = 0.000100007
  Prefactor  = 5.02266
  Normalizat = 0.879413
  Prefactor  = 1.15824
 **********
 **   18 **HESSE 
 **********

 FCN=   7327.837     FROM HESSE     STATUS=OK           295 CALLS     2418 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .26015        .76600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.661        8.2844        .10461E-03   -1.4942    
   3  Prefactor     .60027        29.639        .42751E-02   -1.5553    
   4  norm          1.8174        3.3984        .20022E-03   -1.5438    
   5  Prefactor     .10000E-03    30.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.377        15.717        .10214E-03   -1.4924    
   7  Prefactor     .10000E-03    3.1821        .14913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.110        23.976        .94112E-04   -1.4857    
   9  norm          2.3226        8.9340        .13454E-02   -1.5403    
  10  Prefactor     .10000E-03    1.5697        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5286        4.2546        .14597E-03   -1.5238    
  12  Prefactor     28.027        31.656        .75674E-04   -1.4649    
  13  norm          1.9097        .65125        .38522E-04   -1.5432    
  14  Prefactor     .10000E-03    10.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10023E-03    73.952        .47012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    40.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0227        3.3456        .11952E-03   -1.5260    
  19  Normalizat    .87941        .22078        .30759E-03   -.97187    
  20  Prefactor     1.1582        .15186        .19661E-03   -.87626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22567e-09
Minuit parameter uncertainties:
  1  4.43872e-06
  2  8.28503
  3  8.43963
  4  3.39878
  5  0.000118167
  6  15.7216
  7  1.96213e-07
  8  23.9891
  9  8.93916
  10  6.14497e-08
  11  4.25479
  12  31.6752
  13  0.651257
  14  9.4158e-06
  15  1.81066e-06
  16  0.00817395
  17  0.00103337
  18  3.34573
  19  0.22101
  20  0.151915
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  2.323e+00  8.939e+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.158e+00  1.519e-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:  8.794e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/980557/likelihoodResults_329011201_329270401_4FGL_J0752.2+3313_daily_bin346.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) = 7326.88375061
delta logL = 0.953010708811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7326.79475831
delta logL = 1.04200300843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2246       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3813       1.0000          .0000       5.0000    
     3 'Normalizat'    .78550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1983       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=   7326.795     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      255 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2252        60.871        .90969E-04    .36742E-04
   2  alpha         4.3811        2.6196        .32615E-01    .54597E-05
   3  Normalizat    .78549        .21360        .32395E-03    .11609E-03
   4  Prefactor     1.1983        .15435        .19370E-03    .13738E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22515
  alpha      = 4.38108
  Normalizat = 0.785488
  Prefactor  = 1.1983
 **********
 **   18 **HESSE 
 **********

 FCN=   7326.795     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2252        4.6669        .36387E-05   -1.5410    
   2  alpha         4.3811        1.3321        .13046E-02    .85175    
   3  Normalizat    .78549        .21914        .12958E-04   -1.0061    
   4  Prefactor     1.1983        .15479        .38741E-04   -.86384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46358e-11
Minuit parameter uncertainties:
  1  4.66769
  2  1.55183
  3  0.219388
  4  0.154844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980557': 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) = 7326.79475818
delta logL = 1.04200313449

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  2.225e+00  4.668e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  4.381e+00  1.552e+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.198e+00  1.548e-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:  7.855e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 118.055 33.232
Photon Index (Free Index): 4.38 +/- 1.55
Photon Flux (Free Index): 6.94e-08 +/- 5.40e-08
Energy Flux (Free Index): 1.01e-05 +/- 7.90e-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/980557/cmap_HighResolution_329011201_329270401_4FGL_J0752.2+3313_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='1.04e+00', photon_flux2='6.94e-08', job_status='DONE', time_completed='2021-08-28 18:19:23.063411', photon_index_error2='1.55', photon_index2='4.38', ts='0.08', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='7.90e-06', EG='0.88', time_epoch_completed='1630199963.06', return_code='0', job_id='980557', GAL2='1.20', EG2='0.79', return_code2='0', photon_flux_error2='5.40e-08', ts2='2.35', photon_index='2.31' WHERE bin_id='346' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:19:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 980557: <4FGL_J0752.2+3313_daily_bin346> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin346> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 18:05:36 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:05:36 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:05:36 2021
Terminated at Sat Aug 28 18:19:23 2021
Results reported at Sat Aug 28 18:19:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin346 118.055 33.232 329011201 329270401 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 :                                   706.00 sec.
    Max Memory :                                 1114 MB
    Average Memory :                             289.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            827 sec.

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

