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


Performing analysis on: 4FGL_J0748.0-1638_daily_bin1334
RA = 117.006, Dec = -16.6437
tmin = 585100801, tmax = 585360001
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='891975', job_status='RUN', time_executed='2021-08-28 13:41:14.472846', time_epoch_executed='1630183274.47' WHERE source_name='4FGL J0748.0-1638' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891975

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891975/ft1_4FGL_J0748.0-1638_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891975/ft1_4FGL_J0748.0-1638_daily_bin1334.fits outfile=/scratch/kocevski/891975/ft1_filteredMKT_4FGL_J0748.0-1638_daily_bin1334.fits ra=117.006 dec=-16.6437 rad=12.0 tmin=585100801.0 tmax=585360001.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.28
user 2.77
sys 0.40

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.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/891975/ft1_filteredMKT_4FGL_J0748.0-1638_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.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.68
user 0.33
sys 0.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/891975/ltcube_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.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/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits
.....................!
real 12.41
user 11.85
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/891975/ltcube_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.fits outfile=/scratch/kocevski/891975/expmap_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.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/891975/ltcube_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.fits
.....................!
real 191.67
user 186.56
sys 4.74

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

Setting source of interest to:
4FGL J0748.0-1638 @ 117.006 -16.6437

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.fits scfile=/scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits outfile=/scratch/kocevski/891975/cmap_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.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.006 yref=-16.6437 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.75
user 0.38
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.fits scfile=/scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits outfile=/scratch/kocevski/891975/cmap_HighResolution_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.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.006 yref=-16.6437 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.75
user 0.37
sys 0.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891975/Model_4FGL_J0748.0-1638_daily_bin1334.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/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.fits.....................!
real 187.34
user 184.70
sys 2.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.fits', '/scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits', expMap='/scratch/kocevski/891975/expmap_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.fits', expCube='/scratch/kocevski/891975/ltcube_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/891975/Model_4FGL_J0748.0-1638_daily_bin1334.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0748.0-1638'

4FGL J0748.0-1638
   Spectrum: LogParabola
249         norm:  3.899e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.538e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
251         beta:  1.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/891975/ft1_filtered_4FGL_J0748.0-1638_daily_bin1334.fits
Spacecraft file(s): /scratch/kocevski/891975/ft2_4FGL_J0748.0-1638_daily_bin1334.fits
Exposure map: /scratch/kocevski/891975/expmap_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.fits
Exposure cube: /scratch/kocevski/891975/ltcube_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/891975/Model_4FGL_J0748.0-1638_daily_bin1334.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) = 13143.5226766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3996       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0713       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8972       1.0000         .10000E-03   10000.    
     8 'norm      '    96.671       1.0000         .10000E-03   10000.    
     9 'norm      '    18.129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9145       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2739       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.954       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4452       1.0000         .10000E-03   10000.    
    14 'norm      '    19.621       1.0000         .10000E-03   10000.    
    15 'norm      '    .43982E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    8.7801       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .81373       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0482       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13143.51     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1822 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3992        2.5203       -.59029E-06   -.12098E-02
   2  Prefactor     .10000E-03    14.460       -.73846E-06** at limit **
   3  norm          2.0709        2.2908       -.37197E-06   -.12164E-02
   4  Prefactor     .10000E-03    20.100        .84765E-06** at limit **
   5  norm          .10000E-03    9.2854       -.32930E-07** at limit **
   6  norm          .10000E-03    12.423        .34065E-06** at limit **
   7  norm          2.8955        4.9041       -.10719E-05   -.65042E-03
   8  norm          96.655        53.945       -.56629E-05    .16499E-04
   9  norm          18.130        10.453        .23257E-06   -.38901E-04
  10  Prefactor     1.9163        26.508        .32917E-04   -.93655E-04
  11  norm          2.2739        1.6649        .30683E-07    .11512E-03
  12  Prefactor     38.979        20.737       -.42828E-05   -.10137E-03
  13  Prefactor     6.4435        6.0206       -.12371E-05   -.34459E-03
  14  norm          19.620        23.897        .41861E-06    .18594E-05
  15  norm          .10007E-03    360.75       -.21098E-04** at limit **
  16  norm          8.7805        4.3713        .16714E-06   -.19613E-04
  17  Normalizat    .81388        .33675       -.90529E-05   -.18151E-03
  18  Prefactor     1.0481        .52915E-01    .93456E-06   -.21424E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39917
  Prefactor  = 0.0001
  norm       = 2.07086
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.89546
  norm       = 96.6555
  norm       = 18.1296
  Prefactor  = 1.91629
  norm       = 2.2739
  Prefactor  = 38.9789
  Prefactor  = 6.44346
  norm       = 19.6197
  norm       = 0.000100068
  norm       = 8.7805
  Normalizat = 0.813876
  Prefactor  = 1.04815
 **********
 **   18 **HESSE 
 **********

 FCN=   13143.51     FROM HESSE     STATUS=OK           248 CALLS     2070 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3992        2.5041        .23881E-03   -1.5471    
   2  Prefactor     .10000E-03    14.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0709        2.2866        .17533E-03   -1.5420    
   4  Prefactor     .10000E-03    20.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.2870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8955        4.9042        .23874E-03   -1.5368    
   8  norm          96.655        53.843        .40882E-04   -1.3739    
   9  norm          18.130        10.442        .94066E-04   -1.4856    
  10  Prefactor     1.9163        24.973        .30040E-03   -1.5431    
  11  norm          2.2739        1.6670        .12148E-03   -1.5406    
  12  Prefactor     38.979        20.509        .64219E-04   -1.4458    
  13  Prefactor     6.4435        6.0083        .15809E-03   -1.5200    
  14  norm          19.620        23.859        .90421E-04   -1.4822    
  15  norm          .10007E-03    368.91        .38748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.7805        4.3664        .13527E-03   -1.5115    
  17  Normalizat    .81388        .32713        .86289E-03   -.99556    
  18  Prefactor     1.0481        .52629E-01    .12923E-03   -.91141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79123e-09
Minuit parameter uncertainties:
  1  2.5043
  2  1.18703e-06
  3  2.2867
  4  7.19788e-06
  5  7.53137e-07
  6  6.94104e-06
  7  4.9049
  8  53.8707
  9  10.443
  10  13.8422
  11  1.66706
  12  20.5131
  13  6.00883
  14  23.8711
  15  0.0100597
  16  4.36661
  17  0.327929
  18  0.0526314
Done.

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

Extracting fit parameters...

4FGL J0748.0-1638
   Spectrum: LogParabola
249         norm:  1.000e-04  6.941e-06  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.538e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
251         beta:  1.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.048e+00  5.263e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.139e-01  3.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.006 -16.644
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891975/likelihoodResults_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.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): 102
logL (Free Index) = 13143.5139771
delta logL = -0.000380189912903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13143.5136033
delta logL = -6.41658698441e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5545       1.0000          .0000       5.0000    
     3 'Normalizat'    .81376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   13143.26     FROM MIGRAD    STATUS=FAILED       158 CALLS      311 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55856        57.392        .18142E-01    .31484E-02
   2  alpha         5.0000        4.9244        .16466    ** at limit **
   3  Normalizat    .73985        .92566        .86289E-02    .72257E-04
   4  Prefactor     1.0525        .43693E-01    .12923E-03    .53052E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13143.26     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      457 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55856        57.392        .20487E-05    .31484E-02
   2  alpha         5.0000        4.9244        .60885E-02** at limit **
   3  Normalizat    .73985        .92566        .21841E-05    .72257E-04
   4  Prefactor     1.0525        .43693E-01    .27790E-07    .53052E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13143.26     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      490 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55856        .83257        .11662E-03    .12189E-03
   2  alpha         5.0000        3.2891        .65862E-02** at limit **
   3  Normalizat    .73985        .31711        .34516E-03    .60671E-04
   4  Prefactor     1.0525        .51709E-01    .25846E-04    .53154E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.558565
  alpha      = 5
  Normalizat = 0.739852
  Prefactor  = 1.0525
 **********
 **   18 **HESSE 
 **********

 FCN=   13143.26     FROM HESSE     STATUS=OK            25 CALLS      515 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55856        .83230        .23324E-04   -1.5559    
   2  alpha         5.0000        3.2891        .13172E-02    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .73985        .31699        .13806E-04   -1.0234    
   4  Prefactor     1.0525        .51699E-01    .51691E-05   -.90999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02451e-10
Minuit parameter uncertainties:
  1  0.832314
  2  2.81887e-05
  3  0.317779
  4  0.0517016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891975': 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) = 13143.2558516
delta logL = 0.257745334651

Extracting fit parameters...

4FGL J0748.0-1638
   Spectrum: LogParabola
249         norm:  5.586e-01  8.323e-01  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  5.000e+00  2.819e-05  0.000e+00  5.000e+00 ( 1.000e+00)
251         beta:  1.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.053e+00  5.170e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  7.399e-01  3.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.006 -16.644

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/891975/cmap_HighResolution_585100801_585360001_4FGL_J0748.0-1638_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-05', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-08-28 13:56:35.499720', job_id='891975', GAL2='1.05', fit_tolerance='1e-08', EG2='0.74', EG='0.81', time_epoch_completed='1630184195.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.58e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1334' AND source_name='4FGL J0748.0-1638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 13:56:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 891975: <4FGL_J0748.0-1638_daily_bin1334> in cluster <slac> Done

Job <4FGL_J0748.0-1638_daily_bin1334> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 13:40:40 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 13:40:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 13:40:42 2021
Terminated at Sat Aug 28 13:56:36 2021
Results reported at Sat Aug 28 13:56:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.0-1638_daily_bin1334 117.006 -16.6437 585100801 585360001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0748.0-1638 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   914.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             365.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

