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


Performing analysis on: 4FGL_J0748.3+4928_monthly_bin154
RA = 117.082, Dec = 49.4748
tmin = 636163201, tmax = 638755201
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='43558', job_status='RUN', time_executed='2021-10-18 21:07:27.911300', time_epoch_executed='1634616447.91' WHERE source_name='4FGL J0748.3+4928' and cadence='monthly' and bin_id='154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43558

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43558/ft1_4FGL_J0748.3+4928_monthly_bin154.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43558/ft1_4FGL_J0748.3+4928_monthly_bin154.fits outfile=/scratch/kocevski/43558/ft1_filteredMKT_4FGL_J0748.3+4928_monthly_bin154.fits ra=117.082 dec=49.4748 rad=12.0 tmin=636163201.0 tmax=638755201.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 38.97
user 38.11
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.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/43558/ft1_filteredMKT_4FGL_J0748.3+4928_monthly_bin154.fits evtable="EVENTS" outfile="/scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.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.85
user 0.66
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.fits" evtable="EVENTS" scfile=/scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits sctable="SC_DATA" outfile=/scratch/kocevski/43558/ltcube_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.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/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits
.....................!
real 118.71
user 118.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits sctable="SC_DATA" expcube=/scratch/kocevski/43558/ltcube_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.fits outfile=/scratch/kocevski/43558/expmap_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.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/43558/ltcube_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.fits
.....................!
real 191.17
user 186.92
sys 3.77

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
Added 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J0748.3+4928 @ 117.082 49.4748

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.fits scfile=/scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits outfile=/scratch/kocevski/43558/cmap_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.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.082 yref=49.4748 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.79
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.fits scfile=/scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits outfile=/scratch/kocevski/43558/cmap_HighResolution_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.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.082 yref=49.4748 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.79
user 0.61
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/43558/Model_4FGL_J0748.3+4928_monthly_bin154.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
Working on...
/scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.fits.....................!
real 687.34
user 683.47
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.fits', '/scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits', expMap='/scratch/kocevski/43558/expmap_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.fits', expCube='/scratch/kocevski/43558/ltcube_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/43558/Model_4FGL_J0748.3+4928_monthly_bin154.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0748.3+4928'

4FGL J0748.3+4928
   Spectrum: PowerLaw
282    Prefactor:  1.597e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.379e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/43558/ft1_filtered_4FGL_J0748.3+4928_monthly_bin154.fits
Spacecraft file(s): /scratch/kocevski/43558/ft2_4FGL_J0748.3+4928_monthly_bin154.fits
Exposure map: /scratch/kocevski/43558/expmap_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.fits
Exposure cube: /scratch/kocevski/43558/ltcube_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/43558/Model_4FGL_J0748.3+4928_monthly_bin154.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 81026.8454125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82939       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1393       1.0000         .10000E-03   10000.    
     4 'norm      '    .28118       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8638       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.538       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1807       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.162       1.0000         .10000E-03   10000.    
    12 'norm      '    .37637       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4765       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18995E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.594       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6425       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6857       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3710       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5263       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9641       1.0000         .10000E-03   10000.    
    23 'norm      '    .87939       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .33637       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .86246       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1407       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8725       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.6159       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .44532       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.3966       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1347       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93621       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   81026.58     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4070 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82942        .85992         .0000        .10096E-01
   2  norm          .10000E-03    .17285         .0000    ** at limit **
   3  Prefactor     3.1395        4.6375         .0000        .12029E-02
   4  norm          .28027        .52488         .0000        .81494E-02
   5  Prefactor     1.8637        2.3837         .0000        .31359E-02
   6  Prefactor     2.0660        1.6806         .0000        .11969E-01
   7  Prefactor     11.538        4.1827         .0000        .20380E-02
   8  Prefactor     8.1805        4.8584         .0000       -.53319E-03
   9  norm          2.0371        1.6383         .0000        .16328    
  10  Prefactor     .10000E-03    4.5763         .0000    ** at limit **
  11  Prefactor     33.162        9.2115         .0000       -.22894E-02
  12  norm          .37637        .20191         .0000        .17185E-01
  13  Prefactor     2.4775        3.0234         .0000        .50584E-01
  14  Prefactor     .10000E-03    1.0057         .0000    ** at limit **
  15  norm          1.9837        .67130         .0000        .24414E-02
  16  Prefactor     .10000E-03    1.0343         .0000    ** at limit **
  17  Prefactor     23.609        13.006         .0000       -.16541E-02
  18  Prefactor     2.6429        2.8479         .0000       -.46947E-03
  19  Prefactor     1.6854        1.4701         .0000        .11350E-01
  20  norm          1.3711        .78018         .0000        .41842E-02
  21  norm          2.5264        .50730         .0000        .69316E-03
  22  Prefactor     3.9644        1.9424         .0000        .79209E-03
  23  norm          .87944        .17704         .0000        .37579E-02
  24  Prefactor     .32730        1.1263         .0000        .99514E-03
  25  Prefactor     .86314        1.4308         .0000        .16983E-01
  26  Prefactor     3.1384        6.1135         .0000        .19974E-02
  27  Prefactor     2.8725        2.2205         .0000        .29241E-02
  28  Prefactor     1.6161        1.4846         .0000        .93405E-01
  29  norm          .10000E-03    .51108         .0000    ** at limit **
  30  norm          .44535        .71636         .0000        .11480E-01
  31  Prefactor     6.3981        3.2377         .0000        .27013E-02
  32  Normalizat    1.1347        .58022E-01     .0000        .14580E-02
  33  Prefactor     .93621        .36278E-01     .0000        .17786E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.829416
  norm       = 0.0001
  Prefactor  = 3.13946
  norm       = 0.280269
  Prefactor  = 1.86374
  Prefactor  = 2.06598
  Prefactor  = 11.5385
  Prefactor  = 8.18052
  norm       = 2.03715
  Prefactor  = 0.0001
  Prefactor  = 33.1615
  norm       = 0.376366
  Prefactor  = 2.47753
  Prefactor  = 0.000100001
  norm       = 1.98373
  Prefactor  = 0.0001
  Prefactor  = 23.6087
  Prefactor  = 2.6429
  Prefactor  = 1.68537
  norm       = 1.37109
  norm       = 2.52638
  Prefactor  = 3.96444
  norm       = 0.879436
  Prefactor  = 0.327298
  Prefactor  = 0.863139
  Prefactor  = 3.13841
  Prefactor  = 2.87252
  Prefactor  = 1.61606
  norm       = 0.0001
  norm       = 0.445354
  Prefactor  = 6.39814
  Normalizat = 1.13474
  Prefactor  = 0.936205
 **********
 **   18 **HESSE 
 **********

 FCN=   81026.58     FROM HESSE     STATUS=OK           725 CALLS     4795 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82942        .83028        .25495E-03   -1.5526    
   2  norm          .10000E-03    .40881        .22881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1395        4.6282        .22880E-03   -1.5354    
   4  norm          .28027        1.0601        .24989E-02   -1.5602    
   5  Prefactor     1.8637        2.3635        .30518E-03   -1.5435    
   6  Prefactor     2.0660        1.6233        .28747E-03   -1.5420    
   7  Prefactor     11.538        4.1552        .11794E-03   -1.5028    
   8  Prefactor     8.1805        4.8488        .14017E-03   -1.5136    
   9  norm          2.0371        1.6267        .14488E-02   -1.5423    
  10  Prefactor     .10000E-03    4.7221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.162        9.1870        .69584E-04   -1.4556    
  12  norm          .37637        .17452        .88784E-03   -1.5585    
  13  Prefactor     2.4775        2.9933        .12990E-02   -1.5393    
  14  Prefactor     .10000E-03    6.2508        .54689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9837        .66609        .12838E-03   -1.5426    
  16  Prefactor     .10000E-03    1.0698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.609        12.913        .82465E-04   -1.4736    
  18  Prefactor     2.6429        2.8453        .25081E-03   -1.5383    
  19  Prefactor     1.6854        1.4428        .29361E-03   -1.5448    
  20  norm          1.3711        .77210        .18038E-03   -1.5474    
  21  norm          2.5264        .50544        .86777E-04   -1.5390    
  22  Prefactor     3.9644        1.9324        .20259E-03   -1.5310    
  23  norm          .87944        .17428        .49765E-04   -1.5520    
  24  Prefactor     .32730        10.531        .50658E-02   -1.5594    
  25  Prefactor     .86314        1.4240        .40533E-03   -1.5522    
  26  Prefactor     3.1384        6.0710        .22874E-03   -1.5354    
  27  Prefactor     2.8725        2.2075        .23983E-03   -1.5369    
  28  Prefactor     1.6161        1.4771        .15941E-02   -1.5454    
  29  norm          .10000E-03    .53397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .44535        .87978        .29234E-02   -1.5575    
  31  Prefactor     6.3981        3.2334        .15870E-03   -1.5202    
  32  Normalizat    1.1347        .66193E-01    .28008E-03   -.88644    
  33  Prefactor     .93621        .42109E-01    .20414E-03   -.94887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11086e-07
Minuit parameter uncertainties:
  1  0.830292
  2  3.72312e-06
  3  4.62871
  4  1.06014
  5  2.36357
  6  1.62331
  7  4.1553
  8  4.84901
  9  1.62673
  10  2.85856e-06
  11  9.18741
  12  0.17452
  13  2.99347
  14  0.000113008
  15  0.666097
  16  2.68763e-06
  17  12.915
  18  2.84548
  19  1.44285
  20  0.772106
  21  0.505443
  22  1.93241
  23  0.174276
  24  3.71332
  25  1.42409
  26  6.07218
  27  2.20759
  28  1.47717
  29  4.33344e-06
  30  0.879803
  31  3.23351
  32  0.066198
  33  0.0421101
Done.

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

Extracting fit parameters...

4FGL J0748.3+4928
   Spectrum: PowerLaw
282    Prefactor:  2.478e+00  2.993e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.379e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.362e-01  4.211e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.135e+00  6.620e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 117.082 49.475
Photon Flux Upper Limit: 2.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/43558/likelihoodResults_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.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) = 81026.4171072
delta logL = 0.16781762577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 81026.3880295
delta logL = 0.196895309215

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   81026.39     FROM MIGRAD    STATUS=FAILED       100 CALLS      264 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7727        72.739        .15744E-02    .10078E-01
   2  Index         2.8820        6.1656        .13853E-01    .97417E-04
   3  Normalizat    1.1277        .65051E-01    .28082E-03   -.19432E-05
   4  Prefactor     .93868        .39778E-01    .20389E-03   -.26764E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   81026.39     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      358 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7727        72.739        .73301E-04    .10078E-01
   2  Index         2.8820        6.1656        .84690E-03    .97417E-04
   3  Normalizat    1.1277        .65051E-01    .31730E-04   -.19432E-05
   4  Prefactor     .93868        .39778E-01    .64837E-05   -.26764E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   81026.39     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      391 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7727        2.8861        .31487E-03    .40253E-03
   2  Index         2.8820        .92264        .55412E-03    .36110E-05
   3  Normalizat    1.1277        .62983E-01    .11233E-04   -.32387E-05
   4  Prefactor     .93868        .41575E-01    .81556E-05   -.44607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77268
  Index      = 2.88197
  Normalizat = 1.12771
  Prefactor  = 0.938678
 **********
 **   18 **HESSE 
 **********

 FCN=   81026.39     FROM HESSE     STATUS=OK            25 CALLS      416 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7727        2.7273        .62975E-04   -1.5442    
   2  Index         2.8820        .87265        .11082E-03   -.43742    
   3  Normalizat    1.1277        .63173E-01    .22466E-05   -.88867    
   4  Prefactor     .93868        .41694E-01    .16311E-05   -.94802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42371e-13
Minuit parameter uncertainties:
  1  2.7275
  2  0.878139
  3  0.0631777
  4  0.0416951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43558': 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) = 81026.3880264
delta logL = 0.196898434719

Extracting fit parameters...

4FGL J0748.3+4928
   Spectrum: PowerLaw
282    Prefactor:  1.773e+00  2.727e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.882e+00  8.781e-01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.387e-01  4.170e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  1.128e+00  6.318e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 117.082 49.475
Photon Index (Free Index): 2.88 +/- 0.88
Photon Flux (Free Index): 1.35e-08 +/- 1.43e-08
Energy Flux (Free Index): 2.86e-06 +/- 2.66e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.003e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.113e+00 [aplpy.core]
Saving /scratch/kocevski/43558/cmap_HighResolution_636163201_638755201_4FGL_J0748.3+4928_monthly_bin154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-03', comment='SUCCESS', energy_flux2='2.86e-06', dlogl='1.97e-01', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-10-18 23:55:54.032266', photon_index_error2='0.88', photon_index2='2.88', ts='0.94', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='2.50e-08', energy_flux_error2='2.66e-06', EG='1.13', time_epoch_completed='1634626554.03', return_code='0', job_id='43558', GAL2='0.94', EG2='1.13', return_code2='0', photon_flux_error2='1.43e-08', ts2='1.35', photon_index='2.38' WHERE bin_id='154' AND source_name='4FGL J0748.3+4928' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 18 23:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 43558: <4FGL_J0748.3+4928_monthly_bin154> in cluster <slac> Done

Job <4FGL_J0748.3+4928_monthly_bin154> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Oct 18 21:05:13 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 18 21:07:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 18 21:07:19 2021
Terminated at Mon Oct 18 23:55:55 2021
Results reported at Mon Oct 18 23:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.3+4928_monthly_bin154 117.082 49.4748 636163201 638755201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0748.3+4928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9924.00 sec.
    Max Memory :                                 771 MB
    Average Memory :                             421.99 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10115 sec.
    Turnaround time :                            10242 sec.

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

