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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin472
RA = 267.011, Dec = 34.0641
tmin = 361670401, tmax = 361929601
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='164976', job_status='RUN', time_executed='2021-09-18 14:15:39.478508', time_epoch_executed='1631999739.48' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164976/ft1_4FGL_J1748.0+3403_daily_bin472.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164976/ft2_4FGL_J1748.0+3403_daily_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164976/ft1_4FGL_J1748.0+3403_daily_bin472.fits outfile=/scratch/kocevski/164976/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin472.fits ra=267.011 dec=34.0641 rad=12.0 tmin=361670401.0 tmax=361929601.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.53
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164976/ft1_filtered_4FGL_J1748.0+3403_daily_bin472.fits" evtable="EVENTS" scfile=/scratch/kocevski/164976/ft2_4FGL_J1748.0+3403_daily_bin472.fits sctable="SC_DATA" outfile=/scratch/kocevski/164976/ltcube_361670401_361929601_4FGL_J1748.0+3403_daily_bin472.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/164976/ft2_4FGL_J1748.0+3403_daily_bin472.fits
.....................!
real 12.84
user 12.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164976/ft1_filtered_4FGL_J1748.0+3403_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/164976/ft2_4FGL_J1748.0+3403_daily_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/164976/ltcube_361670401_361929601_4FGL_J1748.0+3403_daily_bin472.fits outfile=/scratch/kocevski/164976/expmap_361670401_361929601_4FGL_J1748.0+3403_daily_bin472.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/164976/ltcube_361670401_361929601_4FGL_J1748.0+3403_daily_bin472.fits
.....................!
real 191.02
user 185.01
sys 5.18

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/164976/ft1_filtered_4FGL_J1748.0+3403_daily_bin472.fits scfile=/scratch/kocevski/164976/ft2_4FGL_J1748.0+3403_daily_bin472.fits outfile=/scratch/kocevski/164976/cmap_361670401_361929601_4FGL_J1748.0+3403_daily_bin472.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164976/ft1_filtered_4FGL_J1748.0+3403_daily_bin472.fits scfile=/scratch/kocevski/164976/ft2_4FGL_J1748.0+3403_daily_bin472.fits outfile=/scratch/kocevski/164976/cmap_HighResolution_361670401_361929601_4FGL_J1748.0+3403_daily_bin472.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1392       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.936       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17563E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.623       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.737       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    19.337       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7359       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0530       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=   8533.418     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     3086 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1391        1.1869       -.69185E-07    .37892E-05
   2  norm          .10000E-03    5.9701        .48843E-07** at limit **
   3  Prefactor     22.935        22.918       -.40724E-06   -.94186E-05
   4  norm          4.1352        4.7625       -.22442E-07    .39660E-04
   5  Prefactor     .10000E-03    122.57       -.33806E-05** at limit **
   6  Prefactor     .10000E-03    56.068       -.88848E-05** at limit **
   7  Prefactor     .10000E-03    11.015       -.14399E-05** at limit **
   8  Prefactor     .10001E-03    74.742        .16684E-04** at limit **
   9  Prefactor     .10000E-03    6.2310       -.48058E-07** at limit **
  10  Prefactor     13.367        138.23        .15005E-06   -.59047E-04
  11  Prefactor     14.265        606.36       -.95494E-05   -.29092E-04
  12  Prefactor     .10000E-03    7.4010        .10721E-05** at limit **
  13  norm          .10000E-03    .53082       -.16619E-06** at limit **
  14  norm          19.311        34.707       -.40257E-05   -.84328E-04
  15  norm          1.7358        9.5900        .12286E-05    .34733E-04
  16  Prefactor     .10000E-03    2.4951       -.12568E-06** at limit **
  17  norm          .10000E-03    11.586        .11147E-05** at limit **
  18  Prefactor     .10000E-03    2.4328       -.56936E-07** at limit **
  19  Prefactor     .10000E-03    12.181        .33667E-06** at limit **
  20  norm          .10000E-03    25.794        .92908E-06** at limit **
  21  Prefactor     .10000E-03    11.624        .30547E-06** at limit **
  22  norm          .10000E-03    16.569       -.62459E-06** at limit **
  23  Normalizat    1.0910        .23794        .77237E-05   -.26847E-03
  24  Prefactor     1.0529        .11513       -.40630E-05    .12080E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13912
  norm       = 0.0001
  Prefactor  = 22.9347
  norm       = 4.13517
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 13.3673
  Prefactor  = 14.2649
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.3111
  norm       = 1.73579
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09101
  Prefactor  = 1.05291
 **********
 **   18 **HESSE 
 **********

 FCN=   8533.418     FROM HESSE     STATUS=OK           385 CALLS     3471 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1391        1.1859        .72496E-04   -1.5415    
   2  norm          .10000E-03    6.1502        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.935        22.916        .41819E-03   -1.4750    
   4  norm          4.1352        4.7550        .19818E-03   -1.5301    
   5  Prefactor     .10000E-03    123.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    77.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.367        140.81        .10852E-03   -1.4977    
  11  Prefactor     14.265        600.68        .10807E-03   -1.4952    
  12  Prefactor     .10000E-03    7.4850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .53372        .65701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.311        34.840        .91081E-04   -1.4829    
  15  norm          1.7358        9.6253        .31852E-03   -1.5444    
  16  Prefactor     .10000E-03    2.5112        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4568        .14066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    25.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    16.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0910        .25209        .35232E-03   -.90041    
  24  Prefactor     1.0529        .12203        .17680E-03   -.90986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0174e-09
Minuit parameter uncertainties:
  1  1.18593
  2  4.9383e-06
  3  22.9246
  4  4.75542
  5  0.000728696
  6  0.000860112
  7  4.88761e-05
  8  0.00197812
  9  1.751e-05
  10  87.0348
  11  187.179
  12  5.08084e-05
  13  2.32741e-07
  14  34.8762
  15  8.17676
  16  2.99364e-06
  17  9.12802e-05
  18  3.63343e-06
  19  3.02665e-05
  20  0.000100036
  21  5.60992e-05
  22  3.02938e-05
  23  0.252369
  24  0.122059
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  4.888e-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.053e+00  1.221e-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.091e+00  2.524e-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: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164976/likelihoodResults_361670401_361929601_4FGL_J1748.0+3403_daily_bin472.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) = 8533.41863121
delta logL = -0.000429548466855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8533.41820114
delta logL = 5.25384166394e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2784       1.0000          .0000       10.000    
     3 'Normalizat'    1.0910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0529       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=   8533.197     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      332 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2378        178.53        .71875E-01    .53265E-03
   2  Index         1.0632        7.4586        .41796        .92050E-04
   3  Normalizat    1.0870        .33917E-01    .35231E-03    .27519E-03
   4  Prefactor     1.0532        .16870E-01    .17680E-03    .52057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23782
  Index      = 1.06324
  Normalizat = 1.08699
  Prefactor  = 1.05318
 **********
 **   18 **HESSE 
 **********

 FCN=   8533.197     FROM HESSE     STATUS=OK            31 CALLS      363 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2378        17.780        .40149E-02   -1.5348    
   2  Index         1.0632        1.6021        .16530E-01   -2.2351    
   3  Normalizat    1.0870        .24252        .14092E-04   -.90171    
   4  Prefactor     1.0532        .12068        .35360E-04   -.90977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52688e-09
Minuit parameter uncertainties:
  1  15.1815
  2  1.68467
  3  0.242767
  4  0.120715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164976': 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) = 8533.19718598
delta logL = 0.221015682868

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  3.238e+00  1.518e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  1.063e+00  1.685e+00  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.053e+00  1.207e-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.087e+00  2.428e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164976/cmap_HighResolution_361670401_361929601_4FGL_J1748.0+3403_daily_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-18 14:31:38.771416', job_id='164976', GAL2='1.05', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632000698.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.21e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='472' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 164976: <4FGL_J1748.0+3403_daily_bin472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin472 267.011 34.0641 361670401 361929601 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 :                                   954.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

