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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1114
RA = 267.011, Dec = 34.0641
tmin = 528076801, tmax = 528336001
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='170181', job_status='RUN', time_executed='2021-09-18 14:37:54.025428', time_epoch_executed='1632001074.03' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170181

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170181/ft1_4FGL_J1748.0+3403_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170181/ft1_4FGL_J1748.0+3403_daily_bin1114.fits outfile=/scratch/kocevski/170181/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1114.fits ra=267.011 dec=34.0641 rad=12.0 tmin=528076801.0 tmax=528336001.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.50
user 3.30
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.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/170181/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1114.fits evtable="EVENTS" outfile="/scratch/kocevski/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/170181/ltcube_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.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/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits
.....................!
real 12.22
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/170181/ltcube_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.fits outfile=/scratch/kocevski/170181/expmap_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.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/170181/ltcube_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.fits
.....................!
real 191.06
user 186.28
sys 3.76

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

Setting source of interest to:
4FGL J1748.0+3403 @ 267.011 34.0641

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.fits scfile=/scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits outfile=/scratch/kocevski/170181/cmap_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.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.011 yref=34.0641 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.fits scfile=/scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits outfile=/scratch/kocevski/170181/cmap_HighResolution_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.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.011 yref=34.0641 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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/170181/Model_4FGL_J1748.0+3403_daily_bin1114.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/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.fits.....................!
real 68.40
user 66.77
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.fits', '/scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits', expMap='/scratch/kocevski/170181/expmap_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.fits', expCube='/scratch/kocevski/170181/ltcube_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170181/Model_4FGL_J1748.0+3403_daily_bin1114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.0+3403'

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  4.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/170181/ft1_filtered_4FGL_J1748.0+3403_daily_bin1114.fits
Spacecraft file(s): /scratch/kocevski/170181/ft2_4FGL_J1748.0+3403_daily_bin1114.fits
Exposure map: /scratch/kocevski/170181/expmap_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.fits
Exposure cube: /scratch/kocevski/170181/ltcube_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170181/Model_4FGL_J1748.0+3403_daily_bin1114.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) = 8512.41759305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.3497       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.643       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.479       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0878       1.0000         .10000E-03   10000.    
    13 'norm      '    .19691       1.0000         .10000E-03   10000.    
    14 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7500       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19399       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1596       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0810       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93323       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8512.413     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2754 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .32306        .46901E-08** at limit **
   2  norm          7.3490        7.0203        .28675E-06   -.21394E-05
   3  Prefactor     28.639        30.283       -.16909E-05   -.29197E-05
   4  norm          5.0005        3.9559        .23847E-06   -.13485E-03
   5  Prefactor     38.067        44.609       -.46647E-05   -.54940E-05
   6  Prefactor     .10000E-03    57.124       -.15827E-06** at limit **
   7  Prefactor     24.204        14.569        .66790E-07    .78429E-05
   8  Prefactor     36.472        42.746       -.48610E-05   -.52991E-05
   9  Prefactor     .10000E-03    11.570        .84220E-08** at limit **
  10  Prefactor     .10000E-03    9.4229       -.77932E-07** at limit **
  11  Prefactor     22.418        43.706        .65280E-05    .74971E-05
  12  Prefactor     4.0867        5.1632        .67983E-07   -.38606E-03
  13  norm          .19748        1.6267       -.48706E-07   -.30422E-03
  14  norm          .10000E-03    35.164        .14065E-07** at limit **
  15  norm          2.7502        2.8667        .49584E-07   -.82820E-03
  16  Prefactor     .10000E-03    3.9780        .26465E-07** at limit **
  17  norm          .10000E-03    2.4799       -.22785E-07** at limit **
  18  Prefactor     .10000E-03    3.7303       -.13411E-07** at limit **
  19  Prefactor     .10000E-03    11.747       -.18471E-06** at limit **
  20  norm          .10000E-03    14.368        .37285E-07** at limit **
  21  Prefactor     6.1595        7.2868       -.18445E-06   -.99232E-05
  22  norm          .10000E-03    17.642       -.41492E-07** at limit **
  23  Normalizat    1.0810        .18954        .43752E-06    .22764E-05
  24  Prefactor     .93336        .97351E-01   -.21681E-07    .56282E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.34904
  Prefactor  = 28.6395
  norm       = 5.00048
  Prefactor  = 38.0671
  Prefactor  = 0.0001
  Prefactor  = 24.2036
  Prefactor  = 36.4724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4182
  Prefactor  = 4.0867
  norm       = 0.197483
  norm       = 0.0001
  norm       = 2.75016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.15953
  norm       = 0.0001
  Normalizat = 1.08098
  Prefactor  = 0.933364
 **********
 **   18 **HESSE 
 **********

 FCN=   8512.413     FROM HESSE     STATUS=OK           409 CALLS     3163 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .33699        .10236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3490        7.0194        .14794E-03   -1.5166    
   3  Prefactor     28.639        30.287        .74858E-04   -1.4637    
   4  norm          5.0005        3.9644        .77356E-03   -1.5261    
   5  Prefactor     38.067        44.623        .64960E-04   -1.4473    
   6  Prefactor     .10000E-03    57.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.204        14.555        .81420E-04   -1.4724    
   8  Prefactor     36.472        42.761        .66355E-04   -1.4499    
   9  Prefactor     .10000E-03    11.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.418        43.732        .84603E-04   -1.4761    
  12  Prefactor     4.0867        5.4363        .99702E-03   -1.5304    
  13  norm          .19748        1.7712        .23328E-03   -1.5619    
  14  norm          .10000E-03    35.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7502        6.1367        .12274E-02   -1.5376    
  16  Prefactor     .10000E-03    4.0492        .17962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4815        .14188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8021        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.850        .92951E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    14.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1595        7.3027        .16176E-03   -1.5212    
  22  norm          .10000E-03    17.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0810        .22420        .31935E-03   -.90365    
  24  Prefactor     .93336        .11550        .17547E-03   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0991e-09
Minuit parameter uncertainties:
  1  1.22028e-07
  2  7.02016
  3  30.3031
  4  3.96459
  5  44.6617
  6  9.52455e-06
  7  14.5573
  8  42.7967
  9  9.0557e-06
  10  1.21567e-05
  11  43.7941
  12  5.43694
  13  1.1826
  14  4.12626e-06
  15  6.13806
  16  2.46184e-06
  17  4.2523e-07
  18  2.71166e-06
  19  8.32061e-05
  20  8.3848e-08
  21  7.30371
  22  2.26617e-07
  23  0.2244
  24  0.115527
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  2.420e+01  1.456e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  9.334e-01  1.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  1.081e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.04
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.24e-05

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) = 8511.49102331
delta logL = 0.922050918985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8511.44859889
delta logL = 0.964475337008

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8511.449     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.816        34.269        .18344E-02    .51731E-03
   2  Index         1.6672        .60372        .23270       -.38978E-04
   3  Normalizat    1.1191        .18871        .71075E-01    .19289E-04
   4  Prefactor     .92346        .96134E-01    .45303E-01    .33630E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.8159
  Index      = 1.66715
  Normalizat = 1.11909
  Prefactor  = 0.923456
 **********
 **   18 **HESSE 
 **********

 FCN=   8511.449     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.816        21.327        .73375E-04   -1.4615    
   2  Index         1.6672        .44987        .84951E-02   -.72960    
   3  Normalizat    1.1191        .21835        .31450E-03   -.89141    
   4  Prefactor     .92346        .11276        .17633E-03   -.95326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27793e-10
Minuit parameter uncertainties:
  1  21.3324
  2  0.450971
  3  0.218528
  4  0.112792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170181': 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) = 8511.44859888
delta logL = 0.964475351699

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  2.982e+01  2.133e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  1.667e+00  4.510e-01  0.000e+00  1.000e+01 (-1.000e+00)
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  9.235e-01  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  1.119e+00  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.95
Ra Dec: 267.011 34.064
Photon Index (Free Index): 1.67 +/- 0.45
Photon Flux (Free Index): 2.69e-08 +/- 2.61e-08
Energy Flux (Free Index): 4.89e-05 +/- 5.04e-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/170181/cmap_HighResolution_528076801_528336001_4FGL_J1748.0+3403_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='4.89e-05', photon_flux_error='3.45e-08', dlogl='9.64e-01', energy_flux='2.06e-05', photon_flux2='2.69e-08', job_status='DONE', time_completed='2021-09-18 14:51:38.428371', photon_index_error2='0.45', photon_index2='1.67', ts='10.04', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='5.04e-05', EG='1.08', time_epoch_completed='1632001898.43', return_code='0', job_id='170181', GAL2='0.92', EG2='1.12', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='2.61e-08', ts2='11.95', photon_index='2.34' WHERE bin_id='1114' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 170181: <4FGL_J1748.0+3403_daily_bin1114> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1114> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 14:35:29 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:35:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 14:35:32 2021
Terminated at Sat Sep 18 14:51:39 2021
Results reported at Sat Sep 18 14:51:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1114 267.011 34.0641 528076801 528336001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.0+3403 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   813.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            970 sec.

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

