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


Performing analysis on: 4FGL_J0748.6+2400_daily_bin420
RA = 117.164, Dec = 24.0166
tmin = 348192001, tmax = 348451201
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='911721', job_status='RUN', time_executed='2021-08-28 14:41:00.346093', time_epoch_executed='1630186860.35' WHERE source_name='4FGL J0748.6+2400' and cadence='daily' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911721/ft1_4FGL_J0748.6+2400_daily_bin420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911721/ft1_4FGL_J0748.6+2400_daily_bin420.fits outfile=/scratch/kocevski/911721/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin420.fits ra=117.164 dec=24.0166 rad=12.0 tmin=348192001.0 tmax=348451201.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.77
user 3.17
sys 1.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.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/911721/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin420.fits evtable="EVENTS" outfile="/scratch/kocevski/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.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 2.06
user 0.32
sys 1.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.fits" evtable="EVENTS" scfile=/scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits sctable="SC_DATA" outfile=/scratch/kocevski/911721/ltcube_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.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/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits
.....................!
real 13.76
user 11.84
sys 1.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/911721/ltcube_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.fits outfile=/scratch/kocevski/911721/expmap_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.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/911721/ltcube_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.fits
.....................!
real 193.64
user 187.33
sys 5.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
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/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.fits scfile=/scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits outfile=/scratch/kocevski/911721/cmap_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.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 1.85
user 0.36
sys 1.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.fits scfile=/scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits outfile=/scratch/kocevski/911721/cmap_HighResolution_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.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 1.91
user 0.36
sys 1.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/911721/Model_4FGL_J0748.6+2400_daily_bin420.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/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.fits.....................!
real 81.01
user 77.85
sys 2.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.fits', '/scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits', expMap='/scratch/kocevski/911721/expmap_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.fits', expCube='/scratch/kocevski/911721/ltcube_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/911721/Model_4FGL_J0748.6+2400_daily_bin420.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/911721/ft1_filtered_4FGL_J0748.6+2400_daily_bin420.fits
Spacecraft file(s): /scratch/kocevski/911721/ft2_4FGL_J0748.6+2400_daily_bin420.fits
Exposure map: /scratch/kocevski/911721/expmap_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.fits
Exposure cube: /scratch/kocevski/911721/ltcube_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/911721/Model_4FGL_J0748.6+2400_daily_bin420.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) = 7166.12555854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98272       1.0000         .10000E-03   10000.    
     2 'norm      '    11.043       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11212E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.178       1.0000         .10000E-03   10000.    
     8 'norm      '    .23387E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94296       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.966       1.0000         .10000E-03   10000.    
    14 'norm      '    .50095E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.785       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1535       1.0000         .10000E-03   10000.    
    21 'norm      '    .21433       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2629       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=   7166.110     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3224 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98712        7.6070       -.92031E-06   -.13177E-03
   2  norm          11.045        13.246       -.85775E-07    .28987E-05
   3  norm          .10000E-03    .14622       -.12008E-07** at limit **
   4  Prefactor     .10000E-03    9.6472       -.37201E-06** at limit **
   5  norm          .10000E-03    .60179       -.77966E-07** at limit **
   6  norm          .10000E-03    1.0846       -.20006E-07** at limit **
   7  Prefactor     19.164        11.695       -.52917E-07    .46490E-04
   8  norm          .10002E-03    2.9412       -.15654E-06** at limit **
   9  Prefactor     3.4272        225.20        .89181E-06   -.18582E-04
  10  Prefactor     66.466        23.680        .80610E-06    .41949E-04
  11  Prefactor     .10000E-03    22.995        .22478E-07** at limit **
  12  Prefactor     .94299        4.8261        .12251E-06   -.69645E-04
  13  Prefactor     41.936        48.403        .36859E-05   -.52982E-04
  14  norm          .10004E-03    6.4378        .14979E-06** at limit **
  15  Prefactor     26.783        103.06        .51011E-06   -.90617E-06
  16  norm          .10000E-03    39.492        .37348E-07** at limit **
  17  Prefactor     .10000E-03    8.4095       -.24247E-07** at limit **
  18  Prefactor     .10000E-03    8.0029       -.28416E-06** at limit **
  19  Prefactor     .10000E-03    8.0188        .27685E-06** at limit **
  20  Prefactor     1.1708        52.401        .13355E-04   -.16174E-04
  21  norm          .21433        1.3017       -.30883E-06   -.23677E-03
  22  Prefactor     11.341        14.435       -.43172E-06   -.16659E-04
  23  Normalizat    .88572        .22320       -.21794E-06    .18865E-04
  24  Prefactor     1.2627        .14306        .57110E-06    .30588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.987124
  norm       = 11.0454
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.1641
  norm       = 0.000100016
  Prefactor  = 3.42719
  Prefactor  = 66.4663
  Prefactor  = 0.0001
  Prefactor  = 0.942989
  Prefactor  = 41.9365
  norm       = 0.000100042
  Prefactor  = 26.7828
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.17084
  norm       = 0.214326
  Prefactor  = 11.3414
  Normalizat = 0.885715
  Prefactor  = 1.26271
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.110     FROM HESSE     STATUS=OK           411 CALLS     3635 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98712        19.625        .43940E-02   -1.5509    
   2  norm          11.045        13.207        .12056E-03   -1.5043    
   3  norm          .10000E-03    .14729        .31607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.055        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0745        .12758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3945        .15213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.164        10.402        .91459E-04   -1.4832    
   8  norm          .10002E-03    24.023        .24600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4272        229.10        .21974E-03   -1.5338    
  10  Prefactor     66.466        23.673        .49224E-04   -1.4076    
  11  Prefactor     .10000E-03    23.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94299        4.8484        .34612E-03   -1.5514    
  13  Prefactor     41.936        48.278        .61881E-04   -1.4412    
  14  norm          .10004E-03    10.080        .68460E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.783        102.55        .77405E-04   -1.4672    
  16  norm          .10000E-03    39.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.0035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1708        53.877        .21517E-02   -1.5492    
  21  norm          .21433        1.2254        .16868E-03   -1.5615    
  22  Prefactor     11.341        14.202        .11898E-03   -1.5034    
  23  Normalizat    .88572        .24889        .33409E-03   -.96964    
  24  Prefactor     1.2627        .16256        .19887E-03   -.84423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91552e-08
Minuit parameter uncertainties:
  1  8.80569
  2  13.2106
  3  4.38523e-07
  4  3.20251e-05
  5  5.89082e-06
  6  6.40231e-06
  7  10.403
  8  0.00124265
  9  56.2667
  10  23.6762
  11  5.46793e-05
  12  4.27675
  13  48.3227
  14  0.00129548
  15  103.24
  16  3.52902e-05
  17  1.16155e-05
  18  1.5961e-05
  19  3.73076e-05
  20  15.8992
  21  1.02474
  22  14.2066
  23  0.249217
  24  0.16262
Done.

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

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  6.647e+01  2.368e+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.263e+00  1.626e-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:  8.857e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.72
Ra Dec: 117.164 24.017
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 5.02e-08
Energy Flux (Fixed Index): 5.02e-05 +/- 1.79e-05

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) = 7160.13322383
delta logL = 5.97721704362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7160.08558696
delta logL = 6.02485391717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.345       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4277       1.0000          .0000       10.000    
     3 'Normalizat'    .96820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2376       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=   7160.086     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      223 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.369        30.691        .11489E-02   -.12703E-03
   2  Index         1.4275        .21102        .11282        .37674E-04
   3  Normalizat    .96846        .19744        .72579E-01   -.17805E-03
   4  Prefactor     1.2374        .13802        .33798E-01   -.11775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.3689
  Index      = 1.42755
  Normalizat = 0.968459
  Prefactor  = 1.23736
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.086     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.369        35.453        .45956E-04   -1.3958    
   2  Index         1.4275        .25169        .48328E-02   -.79590    
   3  Normalizat    .96846        .22467        .32114E-03   -.94095    
   4  Prefactor     1.2374        .15744        .20068E-03   -.85189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52105e-10
Minuit parameter uncertainties:
  1  35.4623
  2  0.251905
  3  0.224887
  4  0.157499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911721': 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) = 7160.08558521
delta logL = 6.02485566367

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  7.637e+01  3.546e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.428e+00  2.519e-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.237e+00  1.575e-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:  9.685e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.75
Ra Dec: 117.164 24.017
Photon Index (Free Index): 1.43 +/- 0.25
Photon Flux (Free Index): 5.32e-08 +/- 2.84e-08
Energy Flux (Free Index): 2.14e-04 +/- 1.32e-04

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/911721/cmap_HighResolution_348192001_348451201_4FGL_J0748.6+2400_daily_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='2.14e-04', photon_flux_error='5.02e-08', dlogl='6.02e+00', energy_flux='5.02e-05', photon_flux2='5.32e-08', job_status='DONE', time_completed='2021-08-28 14:53:03.875758', photon_index_error2='0.25', photon_index2='1.43', ts='34.72', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.32e-04', EG='0.89', time_epoch_completed='1630187583.88', return_code='0', job_id='911721', GAL2='1.24', EG2='0.97', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='2.84e-08', ts2='46.75', photon_index='2.34' WHERE bin_id='420' AND source_name='4FGL J0748.6+2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:53:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 911721: <4FGL_J0748.6+2400_daily_bin420> in cluster <slac> Done

Job <4FGL_J0748.6+2400_daily_bin420> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 14:40:22 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 14:40:23 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:40:23 2021
Terminated at Sat Aug 28 14:53:04 2021
Results reported at Sat Aug 28 14:53:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.6+2400_daily_bin420 117.164 24.0166 348192001 348451201 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 :                                   741.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            762 sec.

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

