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


Performing analysis on: 4FGL_J0748.6+2400_daily_bin721
RA = 117.164, Dec = 24.0166
tmin = 426211201, tmax = 426470401
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='912160', job_status='RUN', time_executed='2021-08-28 14:41:19.811357', time_epoch_executed='1630186879.81' WHERE source_name='4FGL J0748.6+2400' and cadence='daily' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912160/ft1_4FGL_J0748.6+2400_daily_bin721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912160/ft2_4FGL_J0748.6+2400_daily_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912160/ft1_4FGL_J0748.6+2400_daily_bin721.fits outfile=/scratch/kocevski/912160/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin721.fits ra=117.164 dec=24.0166 rad=12.0 tmin=426211201.0 tmax=426470401.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 3.86
user 3.34
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912160/ft1_filtered_4FGL_J0748.6+2400_daily_bin721.fits" evtable="EVENTS" scfile=/scratch/kocevski/912160/ft2_4FGL_J0748.6+2400_daily_bin721.fits sctable="SC_DATA" outfile=/scratch/kocevski/912160/ltcube_426211201_426470401_4FGL_J0748.6+2400_daily_bin721.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/912160/ft2_4FGL_J0748.6+2400_daily_bin721.fits
.....................!
real 12.17
user 11.46
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912160/ft1_filtered_4FGL_J0748.6+2400_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/912160/ft2_4FGL_J0748.6+2400_daily_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/912160/ltcube_426211201_426470401_4FGL_J0748.6+2400_daily_bin721.fits outfile=/scratch/kocevski/912160/expmap_426211201_426470401_4FGL_J0748.6+2400_daily_bin721.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/912160/ltcube_426211201_426470401_4FGL_J0748.6+2400_daily_bin721.fits
.....................!
real 190.55
user 185.06
sys 4.89

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/912160/ft1_filtered_4FGL_J0748.6+2400_daily_bin721.fits scfile=/scratch/kocevski/912160/ft2_4FGL_J0748.6+2400_daily_bin721.fits outfile=/scratch/kocevski/912160/cmap_426211201_426470401_4FGL_J0748.6+2400_daily_bin721.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.82
user 0.37
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912160/ft1_filtered_4FGL_J0748.6+2400_daily_bin721.fits scfile=/scratch/kocevski/912160/ft2_4FGL_J0748.6+2400_daily_bin721.fits outfile=/scratch/kocevski/912160/cmap_HighResolution_426211201_426470401_4FGL_J0748.6+2400_daily_bin721.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.83
user 0.38
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.946       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .26931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9775       1.0000         .10000E-03   10000.    
     6 'norm      '    .98252       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11734E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13932E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.616       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    107.58       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.199       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2361       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=   7379.945     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2739 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.955        16.057       -.13758E-05    .19820E-04
   2  norm          .10000E-03    8.1931       -.83123E-06** at limit **
   3  norm          .26964        .66932       -.63914E-06   -.28312E-02
   4  Prefactor     .10000E-03    2.0399        .73865E-07** at limit **
   5  norm          1.9777        1.4323       -.12403E-06   -.47424E-03
   6  norm          .97843        1.4938        .29545E-06   -.36563E-03
   7  Prefactor     .10000E-03    13.550        .56502E-05** at limit **
   8  norm          .10000E-03    1.6979       -.84303E-07** at limit **
   9  Prefactor     .10000E-03    19.408       -.87494E-05** at limit **
  10  Prefactor     10.153        19.479       -.34046E-05    .45028E-05
  11  Prefactor     .10000E-03    107.14       -.43762E-04** at limit **
  12  Prefactor     5.3034        4.2365       -.18847E-06   -.21216E-03
  13  Prefactor     44.639        42.682        .23181E-04    .60914E-04
  14  norm          .10000E-03    6.3016       -.15692E-06** at limit **
  15  Prefactor     .10000E-03    68.577        .11891E-04** at limit **
  16  norm          107.50        95.963       -.70432E-04    .12621E-04
  17  Prefactor     .10000E-03    11.245       -.26277E-05** at limit **
  18  Prefactor     14.186        28.962       -.12880E-04    .25336E-05
  19  Prefactor     .10000E-03    22.342        .37784E-05** at limit **
  20  Prefactor     .10000E-03    8.1891        .18952E-05** at limit **
  21  norm          .10000E-03    .38408       -.13576E-06** at limit **
  22  Prefactor     .10000E-03    5.1083       -.37732E-06** at limit **
  23  Normalizat    1.0419        .20473        .35696E-06    .24377E-03
  24  Prefactor     1.2360        .14493        .21475E-05    .13858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.9548
  norm       = 0.0001
  norm       = 0.269636
  Prefactor  = 0.0001
  norm       = 1.97771
  norm       = 0.978425
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.153
  Prefactor  = 0.000100001
  Prefactor  = 5.30336
  Prefactor  = 44.6391
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 107.5
  Prefactor  = 0.0001
  Prefactor  = 14.186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04194
  Prefactor  = 1.23605
 **********
 **   18 **HESSE 
 **********

 FCN=   7379.945     FROM HESSE     STATUS=OK           395 CALLS     3134 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.955        16.068        .68778E-04   -1.4542    
   2  norm          .10000E-03    8.3226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .26964        .67249        .10606E-03   -1.5604    
   4  Prefactor     .10000E-03    2.0496        .11980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9777        1.4241        .84336E-04   -1.5427    
   6  norm          .97843        1.2681        .12388E-02   -1.5510    
   7  Prefactor     .10000E-03    13.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7088        .10911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.153        19.462        .12572E-03   -1.5071    
  11  Prefactor     .10000E-03    108.04        .20528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3034        4.2357        .15253E-03   -1.5247    
  13  Prefactor     44.639        42.649        .60023E-04   -1.4371    
  14  norm          .10000E-03    6.3404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    68.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          107.50        95.820        .19387E-03   -1.3631    
  17  Prefactor     .10000E-03    11.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.186        28.978        .10629E-03   -1.4955    
  19  Prefactor     .10000E-03    22.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.2039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .55343        .10337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.1357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0419        .23330        .31829E-03   -.91638    
  24  Prefactor     1.2360        .16633        .20892E-03   -.85229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99506e-09
Minuit parameter uncertainties:
  1  16.0701
  2  1.69769e-05
  3  0.672513
  4  6.92909e-06
  5  1.42417
  6  1.26812
  7  8.46852e-05
  8  4.90954e-05
  9  0.000384142
  10  19.4738
  11  0.000740629
  12  4.23591
  13  42.6778
  14  2.52809e-05
  15  9.89354e-06
  16  95.9587
  17  3.29302e-05
  18  29.0068
  19  2.10296e-05
  20  5.39666e-06
  21  3.19092e-06
  22  4.14547e-06
  23  0.233535
  24  0.166401
Done.

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

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  1.015e+01  1.947e+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.236e+00  1.664e-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.042e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/912160/likelihoodResults_426211201_426470401_4FGL_J0748.6+2400_daily_bin721.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) = 7379.86614238
delta logL = 0.0784089717108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7379.84736993
delta logL = 0.0971814195436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9680       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7938       1.0000          .0000       10.000    
     3 'Normalizat'    1.0280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2414       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7379.847     FROM MIGRAD    STATUS=FAILED        99 CALLS      262 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9587        20.782        .75990E-03   -.30595E-04
   2  Index         2.7967        1.4431        .94055E-02    .43375E-03
   3  Normalizat    1.0282        .23387        .32016E-03    .27272E-04
   4  Prefactor     1.2413        .16424        .20852E-03   -.15647E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7379.847     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      339 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9587        20.782        .28070E-03   -1.5180    
   2  Index         2.7967        1.4431        .12627E-02   -.45634    
   3  Normalizat    1.0282        .23387        .36984E-03   -.92092    
   4  Prefactor     1.2413        .16424        .25137E-03   -.85068    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7379.847     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      369 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9587        16.129        .30396E-04   -.11969E-04
   2  Index         2.7967        1.1271        .18811E-02    .19460E-05
   3  Normalizat    1.0282        .23389        .12806E-04   -.71020E-06
   4  Prefactor     1.2413        .16403        .41705E-04   -.87232E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95868
  Index      = 2.79669
  Normalizat = 1.02818
  Prefactor  = 1.24134
 **********
 **   18 **HESSE 
 **********

 FCN=   7379.847     FROM HESSE     STATUS=OK            23 CALLS      392 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9587        15.600        .12158E-05   -1.5180    
   2  Index         2.7967        1.0908        .75244E-04   -.45633    
   3  Normalizat    1.0282        .23380        .25612E-05   -.92092    
   4  Prefactor     1.2413        .16396        .83410E-05   -.85068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90155e-13
Minuit parameter uncertainties:
  1  15.6087
  2  1.10184
  3  0.234035
  4  0.164025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912160': 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) = 7379.84736296
delta logL = 0.0971883867087

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  6.959e+00  1.561e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.797e+00  1.102e+00  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.241e+00  1.640e-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.028e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
Ra Dec: 117.164 24.017

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/912160/cmap_HighResolution_426211201_426470401_4FGL_J0748.6+2400_daily_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-28 14:54:19.432092', job_id='912160', GAL2='1.24', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1630187659.43', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='9.72e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='721' AND source_name='4FGL J0748.6+2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:54:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 912160: <4FGL_J0748.6+2400_daily_bin721> in cluster <slac> Done

Job <4FGL_J0748.6+2400_daily_bin721> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 14:40:50 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 14:41:03 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:41:03 2021
Terminated at Sat Aug 28 14:54:20 2021
Results reported at Sat Aug 28 14:54:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.6+2400_daily_bin721 117.164 24.0166 426211201 426470401 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            810 sec.

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

