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


Performing analysis on: 4FGL_J0748.6+2400_daily_bin375
RA = 117.164, Dec = 24.0166
tmin = 336528001, tmax = 336787201
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='910271', job_status='RUN', time_executed='2021-08-28 14:37:13.515725', time_epoch_executed='1630186633.52' WHERE source_name='4FGL J0748.6+2400' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910271

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910271/ft1_4FGL_J0748.6+2400_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910271/ft1_4FGL_J0748.6+2400_daily_bin375.fits outfile=/scratch/kocevski/910271/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin375.fits ra=117.164 dec=24.0166 rad=12.0 tmin=336528001.0 tmax=336787201.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 10.37
user 5.52
sys 4.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.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/910271/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.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 4.99
user 0.34
sys 4.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/910271/ltcube_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.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/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits
.....................!
real 17.09
user 11.70
sys 5.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/910271/ltcube_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.fits outfile=/scratch/kocevski/910271/expmap_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.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/910271/ltcube_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.fits
.....................!
real 196.32
user 185.97
sys 9.61

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 170 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0748.6+2400 @ 117.164 24.0166

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.fits scfile=/scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits outfile=/scratch/kocevski/910271/cmap_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.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=117.164 yref=24.0166 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 4.77
user 0.38
sys 4.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.fits scfile=/scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits outfile=/scratch/kocevski/910271/cmap_HighResolution_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.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=117.164 yref=24.0166 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 4.75
user 0.37
sys 4.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/910271/Model_4FGL_J0748.6+2400_daily_bin375.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
adding source IC 443
Working on...
/scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.fits.....................!
real 79.92
user 72.78
sys 6.84

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.fits', '/scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits', expMap='/scratch/kocevski/910271/expmap_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.fits', expCube='/scratch/kocevski/910271/ltcube_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/910271/Model_4FGL_J0748.6+2400_daily_bin375.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0748.6+2400'

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  6.975e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  1.118e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/910271/ft1_filtered_4FGL_J0748.6+2400_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/910271/ft2_4FGL_J0748.6+2400_daily_bin375.fits
Exposure map: /scratch/kocevski/910271/expmap_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.fits
Exposure cube: /scratch/kocevski/910271/ltcube_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/910271/Model_4FGL_J0748.6+2400_daily_bin375.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) = 6629.09855095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55918       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .48896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35182E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .97206       1.0000         .10000E-03   10000.    
     6 'norm      '    .77867       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.413       1.0000         .10000E-03   10000.    
     8 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.662       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.882       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.789       1.0000         .10000E-03   10000.    
    16 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.121       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.920       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1078       1.0000         .10000E-03   10000.    
    21 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0969       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1406       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6629.016     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2827 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58617        8.9667        .22814E-06   -.43418E-04
   2  norm          .10000E-03    4.7033        .66026E-08** at limit **
   3  norm          .48917        .55584        .39794E-07   -.21117E-03
   4  Prefactor     .10000E-03    4.0461        .97624E-07** at limit **
   5  norm          .97211        1.1690        .79476E-07   -.29188E-03
   6  norm          .78200        1.8039        .11162E-05   -.50727E-04
   7  Prefactor     16.393        12.405       -.11676E-05   -.79798E-04
   8  norm          .10000E-03    1.6317       -.13715E-07** at limit **
   9  Prefactor     13.678        36.431        .11060E-06   -.86804E-05
  10  Prefactor     11.889        14.203        .73377E-07    .54611E-06
  11  Prefactor     .10000E-03    56.484        .82265E-07** at limit **
  12  Prefactor     6.7548        4.7192        .56878E-07   -.10625E-03
  13  Prefactor     .10000E-03    20.983       -.44484E-07** at limit **
  14  norm          .10000E-03    9.8839        .59434E-07** at limit **
  15  Prefactor     32.722        118.68       -.12117E-05   -.27399E-04
  16  norm          .10000E-03    315.51        .36973E-07** at limit **
  17  Prefactor     .10000E-03    16.367        .82288E-07** at limit **
  18  Prefactor     29.107        26.962        .11038E-06    .39892E-04
  19  Prefactor     22.913        26.014        .10408E-06    .19388E-04
  20  Prefactor     5.1053        19.156        .28518E-06   -.19269E-04
  21  norm          .10000E-03    .73916        .30419E-08** at limit **
  22  Prefactor     .10000E-03    11.004        .45753E-07** at limit **
  23  Normalizat    1.0977        .22029        .15066E-06   -.69312E-04
  24  Prefactor     1.1401        .14700       -.44092E-06    .19783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.58617
  norm       = 0.0001
  norm       = 0.489171
  Prefactor  = 0.0001
  norm       = 0.972107
  norm       = 0.782005
  Prefactor  = 16.3928
  norm       = 0.0001
  Prefactor  = 13.6778
  Prefactor  = 11.8886
  Prefactor  = 0.0001
  Prefactor  = 6.75485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.7215
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.107
  Prefactor  = 22.9127
  Prefactor  = 5.10531
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09774
  Prefactor  = 1.14005
 **********
 **   18 **HESSE 
 **********

 FCN=   6629.016     FROM HESSE     STATUS=OK           409 CALLS     3236 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58617        54.861        .45879E-02   -1.5555    
   2  norm          .10000E-03    4.7156        .17243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .48917        .51841        .62795E-03   -1.5568    
   4  Prefactor     .10000E-03    8.8589        .31544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .97211        1.0461        .93069E-03   -1.5511    
   6  norm          .78200        1.8128        .13810E-02   -1.5531    
   7  Prefactor     16.393        12.497        .98862E-04   -1.4898    
   8  norm          .10000E-03    1.6387        .10138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.678        36.475        .10836E-03   -1.4968    
  10  Prefactor     11.889        14.194        .11622E-03   -1.5018    
  11  Prefactor     .10000E-03    56.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7548        4.7148        .14171E-03   -1.5188    
  13  Prefactor     .10000E-03    20.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.9703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.722        118.87        .69978E-04   -1.4563    
  16  norm          .10000E-03    317.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.107        26.987        .74243E-04   -1.4628    
  19  Prefactor     22.913        26.050        .83668E-04   -1.4750    
  20  Prefactor     5.1053        18.366        .17790E-03   -1.5256    
  21  norm          .10000E-03    1.3319        .12962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0977        .25698        .30661E-03   -.89824    
  24  Prefactor     1.1401        .17195        .20688E-03   -.88197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36839e-08
Minuit parameter uncertainties:
  1  11.3514
  2  3.1637e-07
  3  0.518418
  4  1.82628e-05
  5  1.04614
  6  1.81293
  7  12.4995
  8  1.58666e-06
  9  36.5348
  10  14.1981
  11  5.57787e-06
  12  4.71506
  13  1.18441e-05
  14  4.85759e-06
  15  119.745
  16  7.66936e-05
  17  1.60252e-05
  18  26.9985
  19  26.0632
  20  18.3862
  21  1.23349e-06
  22  2.77186e-06
  23  0.257278
  24  0.172034
Done.

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

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  1.189e+01  1.420e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  1.118e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.140e+00  1.720e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.098e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 117.164 24.017
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.52e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 8.99e-06 +/- 1.07e-05

TS (Fixed Index): 1.14
Ra Dec: 117.164 24.017
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/910271/likelihoodResults_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.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) = 6628.85665672
delta logL = 0.158980847064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6628.85635648
delta logL = 0.159281083173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.852       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9529       1.0000          .0000       10.000    
     3 'Normalizat'    1.1052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1357       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6628.856     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      272 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.879        944.21        .23699E-02    .14996E-03
   2  Index         1.9539        5.2607        .19905        .38553E-04
   3  Normalizat    1.1052        .11543        .69087E-01    .17047E-04
   4  Prefactor     1.1357        .74463E-01    .36364E-01   -.14047E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.879
  Index      = 1.95393
  Normalizat = 1.10518
  Prefactor  = 1.13567
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.856     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.879        20.892        .47397E-03   -1.4862    
   2  Index         1.9539        .63771        .10066E-01   -.65507    
   3  Normalizat    1.1052        .24378        .30567E-03   -.89586    
   4  Prefactor     1.1357        .16837        .20719E-03   -.88335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60503e-10
Minuit parameter uncertainties:
  1  20.9
  2  0.640492
  3  0.244026
  4  0.16845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910271': 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) = 6628.85635339
delta logL = 0.159284174443

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  1.788e+01  2.090e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.954e+00  6.405e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  1.118e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.136e+00  1.684e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.105e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 117.164 24.017
Photon Index (Free Index): 1.95 +/- 0.64
Photon Flux (Free Index): 2.09e-08 +/- 2.59e-08
Energy Flux (Free Index): 1.63e-05 +/- 2.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/910271/cmap_HighResolution_336528001_336787201_4FGL_J0748.6+2400_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-03', comment='SUCCESS', photon_flux='2.52e-08', energy_flux2='1.63e-05', photon_flux_error='3.01e-08', dlogl='1.59e-01', energy_flux='8.99e-06', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-08-28 14:50:45.040896', photon_index_error2='0.64', photon_index2='1.95', ts='1.14', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='2.59e-05', EG='1.10', time_epoch_completed='1630187445.04', return_code='0', job_id='910271', GAL2='1.14', EG2='1.11', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.59e-08', ts2='1.46', photon_index='2.34' WHERE bin_id='375' AND source_name='4FGL J0748.6+2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:50:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 910271: <4FGL_J0748.6+2400_daily_bin375> in cluster <slac> Done

Job <4FGL_J0748.6+2400_daily_bin375> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 14:35:44 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 14:35:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 14:35:49 2021
Terminated at Sat Aug 28 14:50:46 2021
Results reported at Sat Aug 28 14:50:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.6+2400_daily_bin375 117.164 24.0166 336528001 336787201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0748.6+2400 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   872.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            902 sec.

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

