/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 158 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0748.6+2400_daily_bin80
RA = 117.164, Dec = 24.0166
tmin = 260064001, tmax = 260323201
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='908587', job_status='RUN', time_executed='2021-08-28 14:33:14.922064', time_epoch_executed='1630186394.92' WHERE source_name='4FGL J0748.6+2400' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908587/ft1_4FGL_J0748.6+2400_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908587/ft2_4FGL_J0748.6+2400_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908587/ft1_4FGL_J0748.6+2400_daily_bin80.fits outfile=/scratch/kocevski/908587/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin80.fits ra=117.164 dec=24.0166 rad=12.0 tmin=260064001.0 tmax=260323201.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 1.67
user 1.29
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/908587/ft2_4FGL_J0748.6+2400_daily_bin80.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/908587/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin80.fits evtable="EVENTS" outfile="/scratch/kocevski/908587/ft1_filtered_4FGL_J0748.6+2400_daily_bin80.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.56
user 0.33
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908587/ft1_filtered_4FGL_J0748.6+2400_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/908587/ft2_4FGL_J0748.6+2400_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/908587/ltcube_260064001_260323201_4FGL_J0748.6+2400_daily_bin80.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/908587/ft2_4FGL_J0748.6+2400_daily_bin80.fits
.....................!
real 13.13
user 12.64
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908587/ft1_filtered_4FGL_J0748.6+2400_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/908587/ft2_4FGL_J0748.6+2400_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/908587/ltcube_260064001_260323201_4FGL_J0748.6+2400_daily_bin80.fits outfile=/scratch/kocevski/908587/expmap_260064001_260323201_4FGL_J0748.6+2400_daily_bin80.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/908587/ltcube_260064001_260323201_4FGL_J0748.6+2400_daily_bin80.fits
.....................!
real 190.51
user 185.29
sys 4.67

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/908587/ft1_filtered_4FGL_J0748.6+2400_daily_bin80.fits scfile=/scratch/kocevski/908587/ft2_4FGL_J0748.6+2400_daily_bin80.fits outfile=/scratch/kocevski/908587/cmap_260064001_260323201_4FGL_J0748.6+2400_daily_bin80.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 0.59
user 0.36
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908587/ft1_filtered_4FGL_J0748.6+2400_daily_bin80.fits scfile=/scratch/kocevski/908587/ft2_4FGL_J0748.6+2400_daily_bin80.fits outfile=/scratch/kocevski/908587/cmap_HighResolution_260064001_260323201_4FGL_J0748.6+2400_daily_bin80.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 0.61
user 0.38
sys 0.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13509E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    37.054       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9344       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2038       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3636       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7007       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1123       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7204       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.274       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.753       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3539       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64424       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1016       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=   7405.969     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2361 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4593        .37374E-06** at limit **
   2  norm          37.054        13.456        .16112E-06    .44833E-05
   3  norm          2.7171        .89984        .49111E-08   -.88238E-04
   4  Prefactor     2.9321        6.2882        .82607E-06   -.44621E-06
   5  norm          3.2037        1.3257        .29192E-07    .17697E-04
   6  norm          4.3639        1.5721       -.37632E-07    .24212E-03
   7  Prefactor     .10000E-03    2.3625       -.26831E-06** at limit **
   8  norm          5.7117        4.9455        .38298E-05   -.70636E-03
   9  Prefactor     .10000E-03    13.163       -.21929E-06** at limit **
  10  Prefactor     1.6490        54.537       -.13258E-04   -.16178E-03
  11  Prefactor     1.8763        206.59       -.64301E-05   -.99140E-04
  12  Prefactor     7.7195        3.8311        .74666E-06   -.48084E-03
  13  Prefactor     44.249        38.084       -.32548E-05   -.18441E-04
  14  norm          4.5455        11.622        .69661E-06   -.45552E-04
  15  Prefactor     .10013E-03    206.73        .76690E-05** at limit **
  16  norm          .10000E-03    35.459        .34452E-07** at limit **
  17  Prefactor     .10000E-03    17.079        .16971E-06** at limit **
  18  Prefactor     16.748        22.830        .19463E-06   -.24843E-05
  19  Prefactor     .10000E-03    5.6318        .61876E-07** at limit **
  20  Prefactor     .10000E-03    8.7594        .10162E-06** at limit **
  21  norm          1.3531        1.1078        .15025E-06   -.75529E-04
  22  Prefactor     .10000E-03    9.2007        .43324E-06** at limit **
  23  Normalizat    .64464        .19024       -.12411E-05    .81930E-04
  24  Prefactor     1.1014        .12906       -.69021E-06    .17175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 37.054
  norm       = 2.71707
  Prefactor  = 2.93211
  norm       = 3.20365
  norm       = 4.36387
  Prefactor  = 0.0001
  norm       = 5.71166
  Prefactor  = 0.0001
  Prefactor  = 1.64901
  Prefactor  = 1.87631
  Prefactor  = 7.71955
  Prefactor  = 44.2495
  norm       = 4.54549
  Prefactor  = 0.000100125
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35315
  Prefactor  = 0.0001
  Normalizat = 0.644638
  Prefactor  = 1.10141
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.969     FROM HESSE     STATUS=OK           401 CALLS     2762 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          37.054        13.464        .65840E-04   -1.4490    
   3  norm          2.7171        .89929        .45410E-04   -1.5378    
   4  Prefactor     2.9321        6.2540        .23712E-03   -1.5365    
   5  norm          3.2037        1.3244        .61544E-04   -1.5350    
   6  norm          4.3639        1.5703        .62399E-04   -1.5290    
   7  Prefactor     .10000E-03    2.3655        .12907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7117        4.9612        .72142E-03   -1.5230    
   9  Prefactor     .10000E-03    13.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6490        54.520        .32256E-03   -1.5451    
  11  Prefactor     1.8763        216.18        .28384E-03   -1.5434    
  12  Prefactor     7.7195        3.8200        .56893E-03   -1.5152    
  13  Prefactor     44.249        38.038        .60253E-04   -1.4377    
  14  norm          4.5455        11.602        .18871E-03   -1.5282    
  15  Prefactor     .10013E-03    211.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    35.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.748        22.833        .97853E-04   -1.4889    
  19  Prefactor     .10000E-03    5.6330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3531        1.0909        .77472E-04   -1.5475    
  22  Prefactor     .10000E-03    9.3462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64464        .21232        .33986E-03   -1.0612    
  24  Prefactor     1.1014        .14652        .19235E-03   -.89422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1905e-09
Minuit parameter uncertainties:
  1  9.59028e-06
  2  13.4655
  3  0.899299
  4  6.25536
  5  1.32446
  6  1.57031
  7  9.19234e-06
  8  4.96153
  9  3.33465e-05
  10  18.9818
  11  40.4291
  12  3.82008
  13  38.0585
  14  11.6078
  15  0.0103317
  16  7.28901e-05
  17  4.42671e-06
  18  22.8448
  19  6.40736e-07
  20  8.95101e-07
  21  1.0909
  22  3.25837e-06
  23  0.212586
  24  0.14657
Done.

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

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  1.649e+00  1.898e+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.101e+00  1.466e-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:  6.446e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 117.164 24.017
Photon Flux Upper Limit: 8.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/908587/likelihoodResults_260064001_260323201_4FGL_J0748.6+2400_daily_bin80.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) = 7404.77386316
delta logL = 1.19493092586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7404.77328772
delta logL = 1.19550636898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0682       1.0000         .10000E-03   10000.    
     2 'Index     '    .65458       1.0000          .0000       10.000    
     3 'Normalizat'    .63898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1038       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=   7404.773     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0497        2.4232        .71818E-02   -.15747E-03
   2  Index         .65186        .41370        .28658       -.81477E-04
   3  Normalizat    .63898        .17557        .77006E-01    .75870E-04
   4  Prefactor     1.1038        .12780        .37442E-01   -.22546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04966
  Index      = 0.651856
  Normalizat = 0.638978
  Prefactor  = 1.10384
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.773     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0497        4.3496        .13745E-03   -1.5422    
   2  Index         .65186        .68105        .13670E-01   -1.0545    
   3  Normalizat    .63898        .19811        .34096E-03   -1.0635    
   4  Prefactor     1.1038        .14457        .19208E-03   -.89344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01302e-11
Minuit parameter uncertainties:
  1  4.35024
  2  0.690004
  3  0.198326
  4  0.144621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908587': 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) = 7404.7732812
delta logL = 1.19551289439

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  2.050e+00  4.350e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  6.519e-01  6.900e-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.104e+00  1.446e-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:  6.390e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 117.164 24.017
Photon Index (Free Index): 0.65 +/- 0.69
Photon Flux (Free Index): 2.86e-09 +/- 3.32e-09
Energy Flux (Free Index): 8.13e-05 +/- 1.13e-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/908587/cmap_HighResolution_260064001_260323201_4FGL_J0748.6+2400_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', comment='SUCCESS', energy_flux2='8.13e-05', dlogl='1.20e+00', photon_flux2='2.86e-09', job_status='DONE', time_completed='2021-08-28 14:45:17.871004', photon_index_error2='0.69', photon_index2='0.65', ts='0.01', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='8.94e-08', energy_flux_error2='1.13e-04', EG='0.64', time_epoch_completed='1630187117.87', return_code='0', job_id='908587', GAL2='1.10', EG2='0.64', return_code2='0', photon_flux_error2='3.32e-09', ts2='2.40', photon_index='2.34' WHERE bin_id='80' AND source_name='4FGL J0748.6+2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:45:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 908587: <4FGL_J0748.6+2400_daily_bin80> in cluster <slac> Done

Job <4FGL_J0748.6+2400_daily_bin80> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 14:30:22 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 14:30:24 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:30:24 2021
Terminated at Sat Aug 28 14:45:18 2021
Results reported at Sat Aug 28 14:45:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.6+2400_daily_bin80 117.164 24.0166 260064001 260323201 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 :                                   719.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

