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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin313
RA = 118.055, Dec = 33.232
tmin = 320457601, tmax = 320716801
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='980503', job_status='RUN', time_executed='2021-08-28 18:08:45.244587', time_epoch_executed='1630199325.24' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980503/ft1_4FGL_J0752.2+3313_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980503/ft2_4FGL_J0752.2+3313_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980503/ft1_4FGL_J0752.2+3313_daily_bin313.fits outfile=/scratch/kocevski/980503/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin313.fits ra=118.055 dec=33.232 rad=12.0 tmin=320457601.0 tmax=320716801.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 4.88
user 3.56
sys 1.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/980503/ft2_4FGL_J0752.2+3313_daily_bin313.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/980503/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin313.fits evtable="EVENTS" outfile="/scratch/kocevski/980503/ft1_filtered_4FGL_J0752.2+3313_daily_bin313.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.71
user 0.33
sys 1.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980503/ft1_filtered_4FGL_J0752.2+3313_daily_bin313.fits" evtable="EVENTS" scfile=/scratch/kocevski/980503/ft2_4FGL_J0752.2+3313_daily_bin313.fits sctable="SC_DATA" outfile=/scratch/kocevski/980503/ltcube_320457601_320716801_4FGL_J0752.2+3313_daily_bin313.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/980503/ft2_4FGL_J0752.2+3313_daily_bin313.fits
.....................!
real 13.04
user 11.32
sys 1.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980503/ft1_filtered_4FGL_J0752.2+3313_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/980503/ft2_4FGL_J0752.2+3313_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/980503/ltcube_320457601_320716801_4FGL_J0752.2+3313_daily_bin313.fits outfile=/scratch/kocevski/980503/expmap_320457601_320716801_4FGL_J0752.2+3313_daily_bin313.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/980503/ltcube_320457601_320716801_4FGL_J0752.2+3313_daily_bin313.fits
.....................!
real 191.67
user 185.41
sys 5.79

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/980503/ft1_filtered_4FGL_J0752.2+3313_daily_bin313.fits scfile=/scratch/kocevski/980503/ft2_4FGL_J0752.2+3313_daily_bin313.fits outfile=/scratch/kocevski/980503/cmap_320457601_320716801_4FGL_J0752.2+3313_daily_bin313.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 1.75
user 0.36
sys 1.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980503/ft1_filtered_4FGL_J0752.2+3313_daily_bin313.fits scfile=/scratch/kocevski/980503/ft2_4FGL_J0752.2+3313_daily_bin313.fits outfile=/scratch/kocevski/980503/cmap_HighResolution_320457601_320716801_4FGL_J0752.2+3313_daily_bin313.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 1.78
user 0.38
sys 1.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4460       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .61797E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4798       1.0000         .10000E-03   10000.    
     4 'norm      '    .17193E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.438       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2947       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.992       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1665       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4535       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3125       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89875       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=   7551.773     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2085 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4460        .75601        .62827E-08    .16591E-03
   2  Prefactor     .10000E-03    5.1097        .11416E-06** at limit **
   3  Prefactor     2.4525        17.011        .17540E-05    .75508E-04
   4  norm          .10001E-03    2.7655       -.11437E-05** at limit **
   5  Prefactor     .10000E-03    28.718        .59917E-07** at limit **
   6  Prefactor     .10000E-03    5.8814       -.86049E-07** at limit **
   7  Prefactor     .10000E-03    26.835       -.25932E-05** at limit **
   8  Prefactor     20.403        33.618       -.14856E-05    .13451E-04
   9  norm          .10000E-03    6.9373        .31964E-07** at limit **
  10  Prefactor     8.2872        9.3969       -.38034E-06   -.87082E-04
  11  Prefactor     .10000E-03    1.8866        .59933E-07** at limit **
  12  Prefactor     .10000E-03    13.336        .30529E-06** at limit **
  13  norm          .10000E-03    .36749        .27899E-06** at limit **
  14  Prefactor     .10000E-03    13.853        .45983E-06** at limit **
  15  Prefactor     .10000E-03    12.780       -.54006E-06** at limit **
  16  Prefactor     20.960        17.804       -.15053E-05   -.25513E-03
  17  Prefactor     7.1425        21.418       -.41512E-06   -.10316E-06
  18  Prefactor     1.4569        3.2804        .12807E-05    .27960E-03
  19  Normalizat    1.3129        .18456        .11277E-05    .20930E-03
  20  Prefactor     .89851        .12038       -.42611E-06    .25089E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44596
  Prefactor  = 0.000100001
  Prefactor  = 2.45252
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.4029
  norm       = 0.0001
  Prefactor  = 8.28719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9598
  Prefactor  = 7.14252
  Prefactor  = 1.4569
  Normalizat = 1.31291
  Prefactor  = 0.898506
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.773     FROM HESSE     STATUS=OK           291 CALLS     2376 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4460        .74936        .52216E-04   -1.5467    
   2  Prefactor     .10000E-03    17.950        .37112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4525        16.977        .25962E-03   -1.5395    
   4  norm          .10001E-03    6.1910        .22272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.403        33.870        .88596E-04   -1.4804    
   9  norm          .10000E-03    6.9797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2872        9.3764        .13920E-03   -1.5132    
  11  Prefactor     .10000E-03    1.8990        .11645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .83915        .95850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.960        17.839        .87420E-04   -1.4792    
  17  Prefactor     7.1425        21.454        .14984E-03   -1.5173    
  18  Prefactor     1.4569        3.3257        .19464E-03   -1.5467    
  19  Normalizat    1.3129        .20936        .26214E-03   -.83182    
  20  Prefactor     .89851        .13899        .21288E-03   -.96193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62421e-09
Minuit parameter uncertainties:
  1  0.749362
  2  0.000241954
  3  12.9101
  4  0.00057285
  5  0.000193782
  6  1.14634e-06
  7  0.000347277
  8  33.9022
  9  4.35578e-06
  10  9.37807
  11  5.7871e-07
  12  2.88739e-05
  13  1.5407e-05
  14  4.40165e-05
  15  5.66336e-05
  16  17.8435
  17  21.477
  18  3.32614
  19  0.209497
  20  0.139044
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  4.356e-06  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:  8.985e-01  1.390e-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.313e+00  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/980503/likelihoodResults_320457601_320716801_4FGL_J0752.2+3313_daily_bin313.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): 102
logL (Free Index) = 7551.77352219
delta logL = -0.000682779175804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7551.77284011
delta logL = -7.01721546648e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10381E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3244       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89864       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7551.773     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      263 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    226.85        .86110E-01** at limit **
   2  alpha         3.0764        3.7163        .16512       -.15707E-04
   3  Normalizat    1.3129        .57802E-01    .26214E-03   -.42501E-05
   4  Prefactor     .89851        .34509E-01    .21288E-03    .29372E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.07639
  Normalizat = 1.31291
  Prefactor  = 0.898506
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.773     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.054        .29076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0764        3.6591        .66049E-02    .23265    
   3  Normalizat    1.3129        .19984        .10486E-04   -.83182    
   4  Prefactor     .89851        .13801        .85152E-05   -.96193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48538e-10
Minuit parameter uncertainties:
  1  7.67375e-07
  2  2.44102
  3  0.199953
  4  0.138066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980503': 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) = 7551.77283607
delta logL = 3.34419291903e-06

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  7.674e-07  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.076e+00  2.441e+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:  8.985e-01  1.381e-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.313e+00  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/980503/cmap_HighResolution_320457601_320716801_4FGL_J0752.2+3313_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-08-28 18:20:43.252175', job_id='980503', GAL2='0.90', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630200043.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='313' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:20:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 980503: <4FGL_J0752.2+3313_daily_bin313> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin313 118.055 33.232 320457601 320716801 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 :                                   734.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

