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


Performing analysis on: 4FGL_J0752.2+3313_daily_bin1085
RA = 118.055, Dec = 33.232
tmin = 520560001, tmax = 520819201
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='986448', job_status='RUN', time_executed='2021-08-28 18:25:54.216224', time_epoch_executed='1630200354.22' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986448/ft1_4FGL_J0752.2+3313_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986448/ft2_4FGL_J0752.2+3313_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986448/ft1_4FGL_J0752.2+3313_daily_bin1085.fits outfile=/scratch/kocevski/986448/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin1085.fits ra=118.055 dec=33.232 rad=12.0 tmin=520560001.0 tmax=520819201.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.50
user 4.91
sys 0.57

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986448/ft1_filtered_4FGL_J0752.2+3313_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/986448/ft2_4FGL_J0752.2+3313_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/986448/ltcube_520560001_520819201_4FGL_J0752.2+3313_daily_bin1085.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/986448/ft2_4FGL_J0752.2+3313_daily_bin1085.fits
.....................!
real 12.22
user 11.47
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986448/ft1_filtered_4FGL_J0752.2+3313_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/986448/ft2_4FGL_J0752.2+3313_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/986448/ltcube_520560001_520819201_4FGL_J0752.2+3313_daily_bin1085.fits outfile=/scratch/kocevski/986448/expmap_520560001_520819201_4FGL_J0752.2+3313_daily_bin1085.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/986448/ltcube_520560001_520819201_4FGL_J0752.2+3313_daily_bin1085.fits
.....................!
real 190.44
user 185.82
sys 4.25

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/986448/ft1_filtered_4FGL_J0752.2+3313_daily_bin1085.fits scfile=/scratch/kocevski/986448/ft2_4FGL_J0752.2+3313_daily_bin1085.fits outfile=/scratch/kocevski/986448/cmap_520560001_520819201_4FGL_J0752.2+3313_daily_bin1085.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.86
user 0.36
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986448/ft1_filtered_4FGL_J0752.2+3313_daily_bin1085.fits scfile=/scratch/kocevski/986448/ft2_4FGL_J0752.2+3313_daily_bin1085.fits outfile=/scratch/kocevski/986448/cmap_HighResolution_520560001_520819201_4FGL_J0752.2+3313_daily_bin1085.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.37
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11638E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.2134       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.039       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.320       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .81471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .44827       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.842       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81999       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2430       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=   7589.994     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2085 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86823        .60332       -.41864E-08   -.21135E-03
   2  Prefactor     .10009E-03    4.2378       -.39411E-06** at limit **
   3  Prefactor     .10000E-03    6.6288       -.35044E-06** at limit **
   4  norm          8.2128        4.1414       -.42077E-07   -.12313E-04
   5  Prefactor     .10000E-03    10.188       -.10171E-04** at limit **
   6  Prefactor     .10000E-03    8.0033        .17302E-05** at limit **
   7  Prefactor     13.039        19.506       -.14803E-05   -.50563E-03
   8  Prefactor     .10000E-03    14.057       -.69352E-05** at limit **
   9  norm          13.320        9.6132       -.40391E-06   -.11737E-04
  10  Prefactor     .79942        5.6867       -.29634E-06   -.59977E-03
  11  Prefactor     .10000E-03    1.5243       -.10515E-07** at limit **
  12  Prefactor     .10000E-03    11.288        .12223E-04** at limit **
  13  norm          .44822        .36809       -.43416E-08   -.23771E-03
  14  Prefactor     .10000E-03    13.622        .27111E-05** at limit **
  15  Prefactor     .10000E-03    43.700        .42323E-05** at limit **
  16  Prefactor     .10000E-03    3.9886       -.23025E-07** at limit **
  17  Prefactor     26.837        21.960       -.12103E-05   -.23017E-04
  18  Prefactor     .10000E-03    1.2226       -.56106E-07** at limit **
  19  Normalizat    .82005        .17633        .39706E-06    .20689E-04
  20  Prefactor     1.2431        .12674        .10981E-06    .91430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.868227
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  norm       = 8.21276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0389
  Prefactor  = 0.0001
  norm       = 13.3196
  Prefactor  = 0.799416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.448216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8368
  Prefactor  = 0.0001
  Normalizat = 0.820054
  Prefactor  = 1.24308
 **********
 **   18 **HESSE 
 **********

 FCN=   7589.994     FROM HESSE     STATUS=OK           301 CALLS     2386 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86823        .60325        .54337E-04   -1.5522    
   2  Prefactor     .10009E-03    5.0784        .52125E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.2128        4.1433        .12006E-03   -1.5135    
   5  Prefactor     .10000E-03    10.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.039        19.502        .55464E-03   -1.4986    
   8  Prefactor     .10000E-03    14.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.320        9.6202        .10975E-03   -1.4978    
  10  Prefactor     .79942        13.763        .39213E-02   -1.5529    
  11  Prefactor     .10000E-03    1.5495        .10498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .44822        .36138        .46484E-04   -1.5574    
  14  Prefactor     .10000E-03    13.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0017        .16986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.837        21.977        .77323E-04   -1.4671    
  18  Prefactor     .10000E-03    2.4463        .18604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .82005        .19724        .31130E-03   -.99329    
  20  Prefactor     1.2431        .14335        .19025E-03   -.85016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78651e-09
Minuit parameter uncertainties:
  1  0.603257
  2  0.00132521
  3  1.63004e-06
  4  4.14342
  5  1.75993e-06
  6  1.00203e-06
  7  19.5119
  8  2.49829e-06
  9  9.62133
  10  6.6354
  11  1.22156e-09
  12  4.14998e-06
  13  0.361378
  14  5.51958e-06
  15  7.73201e-05
  16  4.5204e-07
  17  21.9838
  18  7.45325e-07
  19  0.197412
  20  0.143398
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.332e+01  9.621e+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.243e+00  1.434e-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.201e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.08
Ra Dec: 118.055 33.232
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 9.05e-06

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) = 7589.96949364
delta logL = 0.0246011119962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7589.96859902
delta logL = 0.0254957249235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.186       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5059       1.0000          .0000       5.0000    
     3 'Normalizat'    .81028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2472       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=   7589.969     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.187        9.5172        .11031E-03   -.20164E-02
   2  alpha         2.5056        .87226        .22343E-01   -.19693E-03
   3  Normalizat    .81040        .19865        .31298E-03    .14185E-03
   4  Prefactor     1.2471        .14383        .18999E-03    .46521E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1874
  alpha      = 2.50562
  Normalizat = 0.810403
  Prefactor  = 1.24707
 **********
 **   18 **HESSE 
 **********

 FCN=   7589.969     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.187        9.3848        .22061E-04   -1.4982    
   2  alpha         2.5056        .85939        .89372E-03    .22470E-02
   3  Normalizat    .81040        .19861        .12519E-04   -.99684    
   4  Prefactor     1.2471        .14384        .37998E-04   -.84895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20626e-09
Minuit parameter uncertainties:
  1  9.38588
  2  0.877286
  3  0.198784
  4  0.143889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986448': 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) = 7589.96859877
delta logL = 0.0254959770027

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.319e+01  9.386e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.506e+00  8.773e-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.247e+00  1.439e-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.104e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 118.055 33.232
Photon Index (Free Index): 2.51 +/- 0.88
Photon Flux (Free Index): 4.54e-08 +/- 4.36e-08
Energy Flux (Free Index): 1.25e-05 +/- 8.67e-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/986448/cmap_HighResolution_520560001_520819201_4FGL_J0752.2+3313_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='1.25e-05', photon_flux_error='2.78e-08', dlogl='2.55e-02', energy_flux='1.25e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-08-28 18:36:53.708564', photon_index_error2='0.88', photon_index2='2.51', ts='4.08', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='8.67e-06', EG='0.82', time_epoch_completed='1630201013.71', return_code='0', job_id='986448', GAL2='1.25', EG2='0.81', return_code2='0', energy_flux_error='9.05e-06', photon_flux_error2='4.36e-08', ts2='4.13', photon_index='2.31' WHERE bin_id='1085' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:36:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 986448: <4FGL_J0752.2+3313_daily_bin1085> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin1085> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 18:25:37 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:25:38 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:25:38 2021
Terminated at Sat Aug 28 18:36:54 2021
Results reported at Sat Aug 28 18:36:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin1085 118.055 33.232 520560001 520819201 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 :                                   656.62 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

