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


Performing analysis on: 4FGL_J0748.6+2400_daily_bin393
RA = 117.164, Dec = 24.0166
tmin = 341193601, tmax = 341452801
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='910298', job_status='RUN', time_executed='2021-08-28 14:36:17.718841', time_epoch_executed='1630186577.72' WHERE source_name='4FGL J0748.6+2400' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910298/ft1_4FGL_J0748.6+2400_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910298/ft2_4FGL_J0748.6+2400_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910298/ft1_4FGL_J0748.6+2400_daily_bin393.fits outfile=/scratch/kocevski/910298/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin393.fits ra=117.164 dec=24.0166 rad=12.0 tmin=341193601.0 tmax=341452801.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.26
user 3.19
sys 1.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910298/ft1_filtered_4FGL_J0748.6+2400_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/910298/ft2_4FGL_J0748.6+2400_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/910298/ltcube_341193601_341452801_4FGL_J0748.6+2400_daily_bin393.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/910298/ft2_4FGL_J0748.6+2400_daily_bin393.fits
.....................!
real 14.50
user 13.20
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910298/ft1_filtered_4FGL_J0748.6+2400_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/910298/ft2_4FGL_J0748.6+2400_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/910298/ltcube_341193601_341452801_4FGL_J0748.6+2400_daily_bin393.fits outfile=/scratch/kocevski/910298/expmap_341193601_341452801_4FGL_J0748.6+2400_daily_bin393.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/910298/ltcube_341193601_341452801_4FGL_J0748.6+2400_daily_bin393.fits
.....................!
real 192.38
user 185.91
sys 5.88

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/910298/ft1_filtered_4FGL_J0748.6+2400_daily_bin393.fits scfile=/scratch/kocevski/910298/ft2_4FGL_J0748.6+2400_daily_bin393.fits outfile=/scratch/kocevski/910298/cmap_341193601_341452801_4FGL_J0748.6+2400_daily_bin393.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.34
user 0.41
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910298/ft1_filtered_4FGL_J0748.6+2400_daily_bin393.fits scfile=/scratch/kocevski/910298/ft2_4FGL_J0748.6+2400_daily_bin393.fits outfile=/scratch/kocevski/910298/cmap_HighResolution_341193601_341452801_4FGL_J0748.6+2400_daily_bin393.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.34
user 0.42
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .14989       1.0000         .10000E-03   10000.    
     3 'norm      '    7.6748       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5205       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6190       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34719E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6750       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4806       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    23.425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.671       1.0000         .10000E-03   10000.    
    21 'norm      '    .11464E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92854       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2359       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=   8629.700     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2731 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.713       -.35291E-06** at limit **
   2  norm          .14386        6.3076       -.64971E-06    .22670E-03
   3  norm          7.6747        1.3463       -.52526E-08   -.12664E-04
   4  Prefactor     .10000E-03    1.6026        .21846E-07** at limit **
   5  norm          5.5199        1.8753        .74044E-07    .88561E-04
   6  norm          1.6171        1.3242        .61548E-06    .20849E-03
   7  Prefactor     .10098E-03    4.4950       -.26121E-06** at limit **
   8  norm          .10000E-03    1.4645        .26490E-07** at limit **
   9  Prefactor     .10000E-03    24.159        .32507E-06** at limit **
  10  Prefactor     7.6737        8.6379        .99327E-08   -.95137E-06
  11  Prefactor     8.0014        40.801        .24961E-05   -.45767E-04
  12  Prefactor     6.4784        4.3707        .13835E-06    .55721E-05
  13  Prefactor     .10000E-03    19.886        .12016E-06** at limit **
  14  norm          23.424        12.914       -.28532E-07   -.37973E-05
  15  Prefactor     .10000E-03    51.363        .22780E-06** at limit **
  16  norm          .10000E-03    94.716       -.14521E-06** at limit **
  17  Prefactor     .10000E-03    14.098        .90674E-07** at limit **
  18  Prefactor     .10000E-03    45.807        .22169E-06** at limit **
  19  Prefactor     .10000E-03    35.141       -.63174E-06** at limit **
  20  Prefactor     35.722        24.437       -.63361E-06   -.48248E-04
  21  norm          .10001E-03    .50204        .12942E-06** at limit **
  22  Prefactor     .10000E-03    9.4864        .12068E-06** at limit **
  23  Normalizat    .92905        .19517        .90926E-06    .71982E-05
  24  Prefactor     1.2356        .13264       -.43002E-06    .14129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.143856
  norm       = 7.6747
  Prefactor  = 0.0001
  norm       = 5.51995
  norm       = 1.61713
  Prefactor  = 0.000100978
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.67373
  Prefactor  = 8.00142
  Prefactor  = 6.47838
  Prefactor  = 0.0001
  norm       = 23.4236
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7217
  norm       = 0.000100009
  Prefactor  = 0.0001
  Normalizat = 0.929046
  Prefactor  = 1.23559
 **********
 **   18 **HESSE 
 **********

 FCN=   8629.700     FROM HESSE     STATUS=OK           415 CALLS     3146 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .14386        9.7349        .70262E-01   -1.5632    
   3  norm          7.6747        1.3467        .43672E-04   -1.5154    
   4  Prefactor     .10000E-03    1.6067        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5199        1.8733        .71079E-04   -1.5238    
   6  norm          1.6171        1.3308        .93113E-04   -1.5454    
   7  Prefactor     .10098E-03    70.695        .37834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4820        .10970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6737        8.6379        .14475E-03   -1.5154    
  11  Prefactor     8.0014        40.511        .14136E-03   -1.5142    
  12  Prefactor     6.4784        4.3739        .15297E-03   -1.5199    
  13  Prefactor     .10000E-03    19.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          23.424        12.919        .82761E-04   -1.4740    
  15  Prefactor     .10000E-03    51.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    94.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.722        24.487        .67100E-04   -1.4512    
  21  norm          .10001E-03    .85412        .22730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.5818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92905        .21796        .34038E-03   -.95447    
  24  Prefactor     1.2356        .14915        .21110E-03   -.85243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46092e-08
Minuit parameter uncertainties:
  1  4.62839e-05
  2  2.36636
  3  1.34675
  4  4.47581e-08
  5  1.87328
  6  1.33083
  7  0.0166502
  8  1.71012e-06
  9  8.83231e-05
  10  8.63935
  11  36.0468
  12  4.37415
  13  2.23513e-05
  14  12.9206
  15  0.000171294
  16  5.30496e-05
  17  9.09581e-06
  18  1.59357e-05
  19  0.000216708
  20  24.4935
  21  0.000177237
  22  1.46521e-05
  23  0.218164
  24  0.149199
Done.

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

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  7.674e+00  8.639e+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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.236e+00  1.492e-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.290e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 117.164 24.017
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.63e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 5.80e-06 +/- 6.53e-06

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

Saving results to:
/scratch/kocevski/910298/likelihoodResults_341193601_341452801_4FGL_J0748.6+2400_daily_bin393.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) = 8628.99748286
delta logL = 0.702815185459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8628.96219758
delta logL = 0.73810046873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.443       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4777       1.0000          .0000       10.000    
     3 'Normalizat'    .94025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2309       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=   8628.962     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      209 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.461        12.524        .30997E-02   -.31689E-04
   2  Index         1.4784        .53495        .30068       -.45316E-04
   3  Normalizat    .94018        .18351        .76479E-01    .26242E-04
   4  Prefactor     1.2310        .12957        .33937E-01    .98361E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4613
  Index      = 1.47837
  Normalizat = 0.940177
  Prefactor  = 1.23104
 **********
 **   18 **HESSE 
 **********

 FCN=   8628.962     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.461        11.595        .12399E-03   -1.5061    
   2  Index         1.4784        .60765        .11931E-01   -.78147    
   3  Normalizat    .94018        .20514        .33847E-03   -.95062    
   4  Prefactor     1.2310        .14536        .21138E-03   -.85381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04129e-09
Minuit parameter uncertainties:
  1  11.5971
  2  0.610657
  3  0.205315
  4  0.145405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910298': 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) = 8628.96219575
delta logL = 0.738102291652

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  1.046e+01  1.160e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.478e+00  6.107e-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.231e+00  1.454e-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.402e-01  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 117.164 24.017
Photon Index (Free Index): 1.48 +/- 0.61
Photon Flux (Free Index): 7.48e-09 +/- 9.53e-09
Energy Flux (Free Index): 2.54e-05 +/- 4.28e-05

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/910298/cmap_HighResolution_341193601_341452801_4FGL_J0748.6+2400_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', comment='SUCCESS', photon_flux='1.63e-08', energy_flux2='2.54e-05', photon_flux_error='1.83e-08', dlogl='7.38e-01', energy_flux='5.80e-06', photon_flux2='7.48e-09', job_status='DONE', time_completed='2021-08-28 14:50:36.112945', photon_index_error2='0.61', photon_index2='1.48', ts='2.19', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='7.43e-08', energy_flux_error2='4.28e-05', EG='0.93', time_epoch_completed='1630187436.11', return_code='0', job_id='910298', GAL2='1.23', EG2='0.94', return_code2='0', energy_flux_error='6.53e-06', photon_flux_error2='9.53e-09', ts2='3.67', photon_index='2.34' WHERE bin_id='393' AND source_name='4FGL J0748.6+2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 910298: <4FGL_J0748.6+2400_daily_bin393> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.6+2400_daily_bin393 117.164 24.0166 341193601 341452801 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 :                                   861.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            891 sec.

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

