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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1339
RA = 267.011, Dec = 34.0641
tmin = 586396801, tmax = 586656001
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='172762', job_status='RUN', time_executed='2021-09-18 14:49:10.957209', time_epoch_executed='1632001750.96' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172762

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172762/ft1_4FGL_J1748.0+3403_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172762/ft2_4FGL_J1748.0+3403_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172762/ft1_4FGL_J1748.0+3403_daily_bin1339.fits outfile=/scratch/kocevski/172762/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1339.fits ra=267.011 dec=34.0641 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.58
user 2.37
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172762/ft1_filtered_4FGL_J1748.0+3403_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/172762/ft2_4FGL_J1748.0+3403_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/172762/ltcube_586396801_586656001_4FGL_J1748.0+3403_daily_bin1339.fits outfile=/scratch/kocevski/172762/expmap_586396801_586656001_4FGL_J1748.0+3403_daily_bin1339.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/172762/ltcube_586396801_586656001_4FGL_J1748.0+3403_daily_bin1339.fits
.....................!
real 192.69
user 187.37
sys 4.97

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/172762/ft1_filtered_4FGL_J1748.0+3403_daily_bin1339.fits scfile=/scratch/kocevski/172762/ft2_4FGL_J1748.0+3403_daily_bin1339.fits outfile=/scratch/kocevski/172762/cmap_586396801_586656001_4FGL_J1748.0+3403_daily_bin1339.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172762/ft1_filtered_4FGL_J1748.0+3403_daily_bin1339.fits scfile=/scratch/kocevski/172762/ft2_4FGL_J1748.0+3403_daily_bin1339.fits outfile=/scratch/kocevski/172762/cmap_HighResolution_586396801_586656001_4FGL_J1748.0+3403_daily_bin1339.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6436       1.0000         .10000E-03   10000.    
     2 'norm      '    11.063       1.0000         .10000E-03   10000.    
     3 'Prefactor '    85.804       1.0000         .10000E-03   10000.    
     4 'norm      '    7.0211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13848E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    92.566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6503       1.0000         .10000E-03   10000.    
     8 'Prefactor '    110.56       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2566       1.0000         .10000E-03   10000.    
    14 'norm      '    .14467E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1021       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.5906       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10583E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.261       1.0000         .10000E-03   10000.    
    22 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1734       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91512       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=   6059.700     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2672 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6439        1.2818       -.36946E-07   -.23084E-04
   2  norm          11.066        12.265       -.33730E-06   -.37377E-05
   3  Prefactor     85.835        66.011       -.35585E-06    .14657E-04
   4  norm          7.0238        7.1144       -.47641E-07   -.12362E-04
   5  Prefactor     .10000E-03    49.722        .24546E-06** at limit **
   6  Prefactor     92.160        155.40       -.36581E-05   -.58245E-04
   7  Prefactor     7.6604        13.857       -.48339E-06   -.18094E-04
   8  Prefactor     110.55        87.040        .19140E-06   -.14446E-04
   9  Prefactor     .10000E-03    4.3105        .25179E-06** at limit **
  10  Prefactor     .10000E-03    72.985       -.68510E-05** at limit **
  11  Prefactor     39.201        106.78       -.96511E-06   -.67148E-05
  12  Prefactor     .10000E-03    4.6957        .53251E-07** at limit **
  13  norm          3.2545        3.7384        .73766E-08   -.69702E-04
  14  norm          .10000E-03    58.887       -.17243E-06** at limit **
  15  norm          2.0986        6.0568        .12067E-05    .47247E-04
  16  Prefactor     .10000E-03    4.6936        .39530E-06** at limit **
  17  norm          4.5866        10.868        .68673E-05    .21129E-03
  18  Prefactor     2.8939        6.3053        .39964E-06    .63261E-05
  19  Prefactor     .10000E-03    15.961       -.22774E-06** at limit **
  20  norm          .10000E-03    11.720        .42410E-07** at limit **
  21  Prefactor     31.260        12.942        .70657E-07   -.40077E-04
  22  norm          .10000E-03    21.287        .70513E-08** at limit **
  23  Normalizat    1.1723        .27686        .61737E-05   -.14600E-03
  24  Prefactor     .91566        .13838       -.37349E-05    .26033E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.64389
  norm       = 11.0665
  Prefactor  = 85.8348
  norm       = 7.02381
  Prefactor  = 0.0001
  Prefactor  = 92.1604
  Prefactor  = 7.66043
  Prefactor  = 110.551
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 39.2006
  Prefactor  = 0.0001
  norm       = 3.25453
  norm       = 0.0001
  norm       = 2.09857
  Prefactor  = 0.0001
  norm       = 4.58663
  Prefactor  = 2.89388
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.2596
  norm       = 0.0001
  Normalizat = 1.17227
  Prefactor  = 0.915662
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.700     FROM HESSE     STATUS=OK           397 CALLS     3069 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6439        1.2849        .75238E-04   -1.5452    
   2  norm          11.066        12.260        .12045E-03   -1.5043    
   3  Prefactor     85.835        65.996        .21685E-03   -1.3852    
   4  norm          7.0238        7.1004        .15140E-03   -1.5178    
   5  Prefactor     .10000E-03    49.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     92.160        156.21        .20885E-03   -1.3785    
   7  Prefactor     7.6604        13.833        .14498E-03   -1.5154    
   8  Prefactor     110.55        87.087        .38254E-04   -1.3601    
   9  Prefactor     .10000E-03    4.3174        .15783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    73.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.201        106.66        .63981E-04   -1.4455    
  12  Prefactor     .10000E-03    4.7054        .16472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2545        3.7308        .15203E-03   -1.5347    
  14  norm          .10000E-03    58.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0986        6.0424        .28462E-03   -1.5418    
  16  Prefactor     .10000E-03    4.7304        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.5866        11.008        .93934E-03   -1.5280    
  18  Prefactor     2.8939        6.2794        .23871E-03   -1.5368    
  19  Prefactor     .10000E-03    15.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.260        12.957        .71663E-04   -1.4589    
  22  norm          .10000E-03    21.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1723        .30492        .34271E-03   -.87464    
  24  Prefactor     .91566        .15236        .19106E-03   -.95596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28645e-10
Minuit parameter uncertainties:
  1  1.28497
  2  12.2629
  3  66.0525
  4  7.10122
  5  3.09334e-05
  6  156.917
  7  13.8388
  8  87.1878
  9  7.44506e-07
  10  0.00048918
  11  107.182
  12  3.36165e-06
  13  3.73107
  14  2.44372e-05
  15  6.04418
  16  3.33567e-06
  17  11.0129
  18  6.2808
  19  8.15495e-05
  20  3.16295e-06
  21  12.9582
  22  3.26204e-06
  23  0.305384
  24  0.152436
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  7.660e+00  1.384e+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.157e-01  1.524e-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.172e+00  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 267.011 34.064
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172762/likelihoodResults_586396801_586656001_4FGL_J1748.0+3403_daily_bin1339.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): 0
logL (Free Index) = 6059.44905121
delta logL = 0.250961504484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6059.43112035
delta logL = 0.268892367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.992       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6031       1.0000          .0000       10.000    
     3 'Normalizat'    1.1860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91055       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=   6059.431     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      238 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.992        25.410        .28920E-02   -.14655E-02
   2  Index         1.6031        .95681        .28731       -.32673E-04
   3  Normalizat    1.1860        .24969        .77024E-01    .13547E-04
   4  Prefactor     .91053        .12460        .45139E-01    .53080E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9918
  Index      = 1.6031
  Normalizat = 1.18604
  Prefactor  = 0.91053
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.431     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.992        17.015        .11568E-03   -1.5015    
   2  Index         1.6031        .78798        .13166E-01   -.74692    
   3  Normalizat    1.1860        .29068        .34092E-03   -.87035    
   4  Prefactor     .91053        .14618        .19148E-03   -.95774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70117e-09
Minuit parameter uncertainties:
  1  17.0216
  2  0.794162
  3  0.291076
  4  0.14624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172762': 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) = 6059.43112033
delta logL = 0.268892389449

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.199e+01  1.702e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  1.603e+00  7.942e-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.105e-01  1.462e-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.186e+00  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 267.011 34.064
Photon Index (Free Index): 1.60 +/- 0.79
Photon Flux (Free Index): 1.02e-08 +/- 1.72e-08
Energy Flux (Free Index): 2.28e-05 +/- 5.02e-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/172762/cmap_HighResolution_586396801_586656001_4FGL_J1748.0+3403_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', comment='SUCCESS', energy_flux2='2.28e-05', dlogl='2.69e-01', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-18 15:01:36.422869', photon_index_error2='0.79', photon_index2='1.60', ts='0.49', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='5.02e-05', EG='1.17', time_epoch_completed='1632002496.42', return_code='0', job_id='172762', GAL2='0.91', EG2='1.19', return_code2='0', photon_flux_error2='1.72e-08', ts2='1.03', photon_index='2.34' WHERE bin_id='1339' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 15:01:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 172762: <4FGL_J1748.0+3403_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1339> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 14:45:25 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:45:27 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:45:27 2021
Terminated at Sat Sep 18 15:01:37 2021
Results reported at Sat Sep 18 15:01:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1339 267.011 34.0641 586396801 586656001 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 :                                   722.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

