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


Performing analysis on: 4FGL_J1748.6+7005_daily_bin694
RA = 267.158, Dec = 70.0969
tmin = 419212801, tmax = 419472001
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='179875', job_status='RUN', time_executed='2021-09-18 15:10:48.385852', time_epoch_executed='1632003048.39' WHERE source_name='4FGL J1748.6+7005' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179875/ft1_4FGL_J1748.6+7005_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179875/ft1_4FGL_J1748.6+7005_daily_bin694.fits outfile=/scratch/kocevski/179875/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin694.fits ra=267.158 dec=70.0969 rad=12.0 tmin=419212801.0 tmax=419472001.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 5.51
user 5.27
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.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/179875/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/179875/ltcube_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.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/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits
.....................!
real 12.12
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/179875/ltcube_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.fits outfile=/scratch/kocevski/179875/expmap_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.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/179875/ltcube_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.fits
.....................!
real 189.80
user 184.83
sys 4.66

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

Setting source of interest to:
4FGL J1748.6+7005 @ 267.158 70.0969

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.fits scfile=/scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits outfile=/scratch/kocevski/179875/cmap_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.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=267.158 yref=70.0969 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.fits scfile=/scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits outfile=/scratch/kocevski/179875/cmap_HighResolution_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.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=267.158 yref=70.0969 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/179875/Model_4FGL_J1748.6+7005_daily_bin694.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/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.fits.....................!
real 64.36
user 63.07
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.fits', '/scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits', expMap='/scratch/kocevski/179875/expmap_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.fits', expCube='/scratch/kocevski/179875/ltcube_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/179875/Model_4FGL_J1748.6+7005_daily_bin694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.6+7005'

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  4.089e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/179875/ft1_filtered_4FGL_J1748.6+7005_daily_bin694.fits
Spacecraft file(s): /scratch/kocevski/179875/ft2_4FGL_J1748.6+7005_daily_bin694.fits
Exposure map: /scratch/kocevski/179875/expmap_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.fits
Exposure cube: /scratch/kocevski/179875/ltcube_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/179875/Model_4FGL_J1748.6+7005_daily_bin694.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) = 5491.99668084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.554       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.937       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.134       1.0000         .10000E-03   10000.    
     6 'norm      '    .44692E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34680E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9628       1.0000         .10000E-03   10000.    
    15 'norm      '    .66632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12416E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.7031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.620       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.5308       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22903E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.5743       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0715       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .90108       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5491.982     FROM MIGRAD    STATUS=CONVERGED    859 CALLS     4402 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.554        21.053        .50751E-09   -.44081E-04
   2  Prefactor     .10000E-03    52.685       -.16309E-04** at limit **
   3  Prefactor     .10000E-03    48.459       -.19204E-04** at limit **
   4  norm          11.933        18.456       -.19662E-06   -.33063E-04
   5  Prefactor     31.139        40.590        .28691E-05   -.29002E-04
   6  norm          .46874E-01    .54729       -.98901E-07   -.33403E-04
   7  Prefactor     .10000E-03    8.6739        .37000E-06** at limit **
   8  Prefactor     .10000E-03    1.5850       -.71533E-07** at limit **
   9  Prefactor     .10000E-03    12.057       -.60350E-05** at limit **
  10  Prefactor     .10000E-03    10.173        .17175E-05** at limit **
  11  Prefactor     .10000E-03    33.055        .25408E-04** at limit **
  12  Prefactor     .10000E-03    13.627        .60493E-05** at limit **
  13  Prefactor     .10000E-03    46.610       -.18385E-04** at limit **
  14  norm          3.9623        3.6378       -.97238E-09   -.10602E-03
  15  norm          .66629        .54940       -.13529E-07   -.66724E-03
  16  Prefactor     .10000E-03    63.511        .19363E-04** at limit **
  17  norm          9.7033        6.2448       -.90238E-07   -.10495E-03
  18  Prefactor     47.618        39.689       -.73374E-06   -.54666E-04
  19  Prefactor     .10000E-03    191.54       -.12800E-03** at limit **
  20  Prefactor     .10000E-03    2.5542        .14006E-08** at limit **
  21  Prefactor     .10000E-03    14.910        .83182E-06** at limit **
  22  Prefactor     .10000E-03    8.3016       -.20832E-06** at limit **
  23  Prefactor     .10000E-03    112.88        .89692E-04** at limit **
  24  Prefactor     .10000E-03    38.467        .34219E-05** at limit **
  25  norm          2.5307        2.6717       -.16904E-07   -.10975E-03
  26  Prefactor     .10000E-03    4.5226       -.93366E-08** at limit **
  27  Prefactor     .10003E-03    2.7691       -.16837E-06** at limit **
  28  norm          .10000E-03    21.213       -.85577E-05** at limit **
  29  norm          6.5745        5.4880       -.70821E-06   -.18318E-03
  30  norm          .10000E-03    1.4297       -.22826E-08** at limit **
  31  Normalizat    1.0714        .21405       -.56001E-06   -.19252E-03
  32  Prefactor     .90115        .12632        .30629E-06   -.25648E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.5542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9328
  Prefactor  = 31.1388
  norm       = 0.0468739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.96231
  norm       = 0.666292
  Prefactor  = 0.000100001
  norm       = 9.70327
  Prefactor  = 47.6178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.53068
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  norm       = 0.0001
  norm       = 6.57451
  norm       = 0.0001
  Normalizat = 1.07141
  Prefactor  = 0.901147
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.982     FROM HESSE     STATUS=OK           653 CALLS     5055 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.554        21.049        .84343E-04   -1.4758    
   2  Prefactor     .10000E-03    52.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.933        18.363        .11594E-03   -1.5017    
   5  Prefactor     31.139        40.632        .71809E-04   -1.4591    
   6  norm          .46874E-01    4.1116        .10132E-02   -1.5665    
   7  Prefactor     .10000E-03    31.042        .40598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6060        .90994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9623        3.6294        .12633E-03   -1.5310    
  15  norm          .66629        .53468        .48111E-04   -1.5545    
  16  Prefactor     .10000E-03    66.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.7033        6.2384        .12865E-03   -1.5085    
  18  Prefactor     47.618        39.691        .58107E-04   -1.4327    
  19  Prefactor     .10000E-03    191.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5603        .11563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.3128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    113.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.5307        2.6647        .12074E-03   -1.5390    
  26  Prefactor     .10000E-03    4.5251        .15392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10003E-03    49.325        .23474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    21.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.5745        5.4929        .15314E-03   -1.5195    
  30  norm          .10000E-03    1.4379        .86504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0714        .24309        .29859E-03   -.90675    
  32  Prefactor     .90115        .14372        .19598E-03   -.96101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50463e-08
Minuit parameter uncertainties:
  1  21.0555
  2  7.80012e-07
  3  4.18438e-05
  4  18.3715
  5  40.668
  6  0.877134
  7  0.000156932
  8  5.65328e-06
  9  1.1849e-05
  10  3.74712e-05
  11  0.000122567
  12  2.14075e-05
  13  2.41467e-05
  14  3.62957
  15  0.534686
  16  0.000618246
  17  6.23883
  18  39.7135
  19  9.34977e-05
  20  1.92808e-06
  21  5.64776e-06
  22  2.47674e-06
  23  0.000128012
  24  2.01669e-06
  25  2.6648
  26  2.07951e-07
  27  0.00230452
  28  4.21548e-08
  29  5.49329
  30  2.94223e-07
  31  0.243341
  32  0.143785
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  3.962e+00  3.630e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.011e-01  1.438e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.071e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 3.80e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 2.45e-05

TS (Fixed Index): 3.06
Ra Dec: 267.158 70.097
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/179875/likelihoodResults_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.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) = 5490.64709351
delta logL = 1.33460922688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5490.27173584
delta logL = 1.70996689412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53824E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .88995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97695       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5490.272     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      324 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53818E-01    .63004        .17832E-02   -.28575E-03
   2  alpha         5.0000        2.5019        .46343    ** at limit **
   3  Normalizat    .89014        .17016        .72955E-01    .12076E-04
   4  Prefactor     .97685        .10308        .45978E-01   -.65574E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0538181
  alpha      = 5
  Normalizat = 0.890141
  Prefactor  = 0.976851
 **********
 **   18 **HESSE 
 **********

 FCN=   5490.272     FROM HESSE     STATUS=OK            33 CALLS      357 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53818E-01    .26935E-01    .79586E-05   -1.5662    
   2  alpha         5.0000        3.1241        .31315E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89014        .24416        .32283E-03   -.96807    
   4  Prefactor     .97685        .14618        .18925E-03   -.93505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13069e-12
Minuit parameter uncertainties:
  1  0.0269349
  2  2.08453e-06
  3  0.244466
  4  0.146241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179875': 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) = 5490.27173489
delta logL = 1.70996783926

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  5.382e-02  2.693e-02  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  5.000e+00  2.085e-06  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  9.769e-01  1.462e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  8.901e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.05
Ra Dec: 267.158 70.097
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.60e-07 +/- 7.96e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/179875/cmap_HighResolution_419212801_419472001_4FGL_J1748.6+7005_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-05', comment='SUCCESS', photon_flux='3.80e-08', energy_flux2='2.16e-05', photon_flux_error='3.48e-08', dlogl='1.71e+00', energy_flux='2.68e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-18 15:26:01.001770', photon_index_error2='0.00', photon_index2='5.00', ts='3.06', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.08e-05', EG='1.07', time_epoch_completed='1632003961.0', return_code='0', job_id='179875', GAL2='0.98', EG2='0.89', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='7.96e-08', ts2='7.05', photon_index='1.95' WHERE bin_id='694' AND source_name='4FGL J1748.6+7005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 15:26:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 179875: <4FGL_J1748.6+7005_daily_bin694> in cluster <slac> Done

Job <4FGL_J1748.6+7005_daily_bin694> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 15:10:31 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 15:10:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 15:10:33 2021
Terminated at Sat Sep 18 15:26:01 2021
Results reported at Sat Sep 18 15:26:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_daily_bin694 267.158 70.0969 419212801 419472001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.6+7005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   909.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

