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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1056
RA = 267.011, Dec = 34.0641
tmin = 513043201, tmax = 513302401
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='170096', job_status='RUN', time_executed='2021-09-18 14:38:47.555984', time_epoch_executed='1632001127.56' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170096

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170096/ft1_4FGL_J1748.0+3403_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170096/ft1_4FGL_J1748.0+3403_daily_bin1056.fits outfile=/scratch/kocevski/170096/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1056.fits ra=267.011 dec=34.0641 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.33
user 6.08
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.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/170096/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/170096/ft1_filtered_4FGL_J1748.0+3403_daily_bin1056.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170096/ft1_filtered_4FGL_J1748.0+3403_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/170096/ltcube_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.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/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.fits
.....................!
real 12.33
user 11.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170096/ft1_filtered_4FGL_J1748.0+3403_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/170096/ltcube_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.fits outfile=/scratch/kocevski/170096/expmap_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.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/170096/ltcube_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.fits
.....................!
real 190.12
user 185.19
sys 4.54

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/170096/ft1_filtered_4FGL_J1748.0+3403_daily_bin1056.fits scfile=/scratch/kocevski/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.fits outfile=/scratch/kocevski/170096/cmap_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170096/ft1_filtered_4FGL_J1748.0+3403_daily_bin1056.fits scfile=/scratch/kocevski/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.fits outfile=/scratch/kocevski/170096/cmap_HighResolution_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170096/ft1_filtered_4FGL_J1748.0+3403_daily_bin1056.fits', '/scratch/kocevski/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.fits', expMap='/scratch/kocevski/170096/expmap_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.fits', expCube='/scratch/kocevski/170096/ltcube_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170096/Model_4FGL_J1748.0+3403_daily_bin1056.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/170096/ft1_filtered_4FGL_J1748.0+3403_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/170096/ft2_4FGL_J1748.0+3403_daily_bin1056.fits
Exposure map: /scratch/kocevski/170096/expmap_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.fits
Exposure cube: /scratch/kocevski/170096/ltcube_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170096/Model_4FGL_J1748.0+3403_daily_bin1056.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) = 3480.52628865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .16938E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    244.51       1.0000         .10000E-03   10000.    
     4 'norm      '    18.626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    235.26       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.377       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6941       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    29.274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.946       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8303       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8153       1.0000         .10000E-03   10000.    
    20 'norm      '    13.158       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .45680       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0332       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=   3480.514     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2717 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .71193       -.16497E-06** at limit **
   2  norm          .10197E-03    10.513       -.20207E-05** at limit **
   3  Prefactor     244.51        133.02       -.36291E-06    .29893E-04
   4  norm          18.625        12.486       -.14882E-06    .15851E-03
   5  Prefactor     .10000E-03    57.988       -.12592E-05** at limit **
   6  Prefactor     .10000E-03    88.567        .48681E-05** at limit **
   7  Prefactor     .10000E-03    40.882        .38432E-06** at limit **
   8  Prefactor     235.26        133.90       -.43133E-06   -.27840E-04
   9  Prefactor     .10000E-03    10.444       -.15240E-06** at limit **
  10  Prefactor     45.477        128.66       -.17157E-04   -.71936E-04
  11  Prefactor     7.3852        1568.7        .28597E-04   -.10000E-04
  12  Prefactor     .10000E-03    5.1149        .76355E-08** at limit **
  13  norm          .10000E-03    2.9906        .60991E-06** at limit **
  14  norm          .10000E-03    55.924       -.12355E-05** at limit **
  15  norm          29.275        16.844       -.11274E-06   -.43437E-05
  16  Prefactor     11.947        12.120        .49162E-07   -.18515E-04
  17  norm          .10000E-03    6.7653        .46519E-06** at limit **
  18  Prefactor     8.8256        11.447        .54307E-06   -.13639E-04
  19  Prefactor     6.8819        102.01        .57529E-05    .11254E-04
  20  norm          13.153        46.517       -.22095E-06   -.63082E-05
  21  Prefactor     .10000E-03    4.5464        .18554E-06** at limit **
  22  norm          .10000E-03    35.146        .35279E-06** at limit **
  23  Normalizat    .45674        .34085        .51523E-05    .28429E-04
  24  Prefactor     1.0332        .17102       -.14708E-05    .71833E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000101969
  Prefactor  = 244.51
  norm       = 18.6254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 235.259
  Prefactor  = 0.0001
  Prefactor  = 45.4766
  Prefactor  = 7.38516
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 29.2746
  Prefactor  = 11.9468
  norm       = 0.0001
  Prefactor  = 8.82556
  Prefactor  = 6.88195
  norm       = 13.1535
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.456741
  Prefactor  = 1.03316
 **********
 **   18 **HESSE 
 **********

 FCN=   3480.514     FROM HESSE     STATUS=OK           401 CALLS     3118 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .73394        .97132E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10197E-03    11.730        .60335E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     244.51        132.79        .12950E-03   -1.2568    
   4  norm          18.625        12.470        .92802E-04   -1.4845    
   5  Prefactor     .10000E-03    58.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    88.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     235.26        133.86        .13196E-03   -1.2628    
   9  Prefactor     .10000E-03    10.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.477        130.14        .59519E-04   -1.4358    
  11  Prefactor     7.3852        1623.7        .14457E-03   -1.5164    
  12  Prefactor     .10000E-03    5.1167        .13031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.5283        .19771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    55.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          29.275        16.830        .74049E-04   -1.4625    
  16  Prefactor     11.947        12.087        .11590E-03   -1.5017    
  17  norm          .10000E-03    6.7619        .14982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8256        11.325        .13489E-03   -1.5114    
  19  Prefactor     6.8819        99.654        .15369E-03   -1.5183    
  20  norm          13.153        46.638        .11043E-03   -1.4982    
  21  Prefactor     .10000E-03    4.5513        .12284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    35.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .45674        .35493        .47860E-03   -1.1446    
  24  Prefactor     1.0332        .18243        .16784E-03   -.91632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09541e-09
Minuit parameter uncertainties:
  1  5.01933e-07
  2  0.00961278
  3  132.955
  4  12.4719
  5  5.63848e-05
  6  0.000390544
  7  3.49812e-05
  8  134.038
  9  2.71179e-06
  10  130.967
  11  225.511
  12  2.99788e-06
  13  1.88351e-05
  14  7.94845e-05
  15  16.8324
  16  12.0897
  17  3.95696e-06
  18  11.3277
  19  52.4813
  20  46.7678
  21  2.85868e-06
  22  1.67059e-05
  23  0.356703
  24  0.182538
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  3.498e-05  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:  1.033e+00  1.825e-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:  4.567e-01  3.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.011 34.064
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170096/likelihoodResults_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.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) = 3480.51410271
delta logL = -0.000115493623071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3480.51398902
delta logL = -1.80044344233e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12408E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7037       1.0000          .0000       10.000    
     3 'Normalizat'    .45674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0332       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3480.514     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      293 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12868E-03    10.719        .18142E-01** at limit **
   2  Index         2.3684        5.7824        .50000        .11706E-04
   3  Normalizat    .45674        .40711E-02    .47862E-03    .22459E-04
   4  Prefactor     1.0332        .21112E-02    .16784E-03    .11877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00012868
  Index      = 2.36843
  Normalizat = 0.45674
  Prefactor  = 1.03317
 **********
 **   18 **HESSE 
 **********

 FCN=   3480.514     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12868E-03    989.16        .70821E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3684        5.3070        .50000       -.55426    
   3  Normalizat    .45674        .40131E-01    .19145E-04   -1.1446    
   4  Prefactor     1.0332        .20812E-01    .33567E-04   -.91632    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67182e-06
Minuit parameter uncertainties:
  1  0.342677
  2  1121.34
  3  0.0401339
  4  0.0208117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170096': 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): 102
logL (Free Index) = 3480.51398765
delta logL = -4.30124600825e-07

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.287e-04  3.427e-01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.368e+00  1.121e+03  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:  1.033e+00  2.081e-02  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:  4.567e-01  4.013e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.011 34.064

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/170096/cmap_HighResolution_513043201_513302401_4FGL_J1748.0+3403_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2021-09-18 14:48:20.698799', job_id='170096', GAL2='1.03', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1632001700.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-4.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1056' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:48:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 170096: <4FGL_J1748.0+3403_daily_bin1056> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1056> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 14:35:23 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:35:24 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:24 2021
Terminated at Sat Sep 18 14:48:21 2021
Results reported at Sat Sep 18 14:48:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1056 267.011 34.0641 513043201 513302401 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 :                                   567.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

