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


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1178
RA = 267.011, Dec = 34.0641
tmin = 544665601, tmax = 544924801
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='171394', job_status='RUN', time_executed='2021-09-18 14:40:45.953206', time_epoch_executed='1632001245.95' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171394/ft1_4FGL_J1748.0+3403_daily_bin1178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171394/ft2_4FGL_J1748.0+3403_daily_bin1178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171394/ft1_4FGL_J1748.0+3403_daily_bin1178.fits outfile=/scratch/kocevski/171394/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1178.fits ra=267.011 dec=34.0641 rad=12.0 tmin=544665601.0 tmax=544924801.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 4.05
user 3.81
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171394/ft1_filtered_4FGL_J1748.0+3403_daily_bin1178.fits" evtable="EVENTS" scfile=/scratch/kocevski/171394/ft2_4FGL_J1748.0+3403_daily_bin1178.fits sctable="SC_DATA" outfile=/scratch/kocevski/171394/ltcube_544665601_544924801_4FGL_J1748.0+3403_daily_bin1178.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/171394/ft2_4FGL_J1748.0+3403_daily_bin1178.fits
.....................!
real 11.82
user 11.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171394/ft1_filtered_4FGL_J1748.0+3403_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/171394/ft2_4FGL_J1748.0+3403_daily_bin1178.fits sctable="SC_DATA" expcube=/scratch/kocevski/171394/ltcube_544665601_544924801_4FGL_J1748.0+3403_daily_bin1178.fits outfile=/scratch/kocevski/171394/expmap_544665601_544924801_4FGL_J1748.0+3403_daily_bin1178.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/171394/ltcube_544665601_544924801_4FGL_J1748.0+3403_daily_bin1178.fits
.....................!
real 190.52
user 185.57
sys 4.57

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/171394/ft1_filtered_4FGL_J1748.0+3403_daily_bin1178.fits scfile=/scratch/kocevski/171394/ft2_4FGL_J1748.0+3403_daily_bin1178.fits outfile=/scratch/kocevski/171394/cmap_544665601_544924801_4FGL_J1748.0+3403_daily_bin1178.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171394/ft1_filtered_4FGL_J1748.0+3403_daily_bin1178.fits scfile=/scratch/kocevski/171394/ft2_4FGL_J1748.0+3403_daily_bin1178.fits outfile=/scratch/kocevski/171394/cmap_HighResolution_544665601_544924801_4FGL_J1748.0+3403_daily_bin1178.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    92.659       1.0000         .10000E-03   10000.    
     4 'norm      '    15.539       1.0000         .10000E-03   10000.    
     5 'Prefactor '    73.054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.821       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.739       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36149E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39822E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    89.723       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9397       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    296.95       1.0000         .10000E-03   10000.    
    15 'norm      '    10.100       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.395       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2087       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91484       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=   5075.179     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     3574 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2022       -.65970E-07** at limit **
   2  norm          .10000E-03    11.351       -.87718E-06** at limit **
   3  Prefactor     92.470        155.76       -.50535E-05   -.29610E-04
   4  norm          15.576        26.184        .17774E-05    .15951E-03
   5  Prefactor     72.563        352.47       -.82408E-06    .26701E-04
   6  Prefactor     25.559        281.29       -.91110E-05   -.35335E-04
   7  Prefactor     .10000E-03    91.919        .78485E-05** at limit **
   8  Prefactor     54.726        66.248       -.22315E-05   -.52328E-04
   9  Prefactor     .10005E-03    369.00       -.28107E-04** at limit **
  10  Prefactor     .10001E-03    846.68       -.25812E-04** at limit **
  11  Prefactor     89.371        113.64       -.55473E-05   -.12077E-03
  12  Prefactor     3.9406        11.892        .72902E-05    .42161E-04
  13  norm          .10000E-03    1.4926        .10442E-05** at limit **
  14  norm          297.00        165.25        .19141E-05   -.66589E-04
  15  norm          10.074        76.964        .77763E-05    .12425E-03
  16  Prefactor     .10000E-03    4.1762        .10506E-05** at limit **
  17  norm          .10000E-03    3.4876        .65888E-06** at limit **
  18  Prefactor     .10000E-03    2.1827        .11212E-05** at limit **
  19  Prefactor     .10000E-03    18.823        .38410E-05** at limit **
  20  norm          29.386        42.755       -.34187E-05   -.26456E-04
  21  Prefactor     .10000E-03    8.5463        .32743E-05** at limit **
  22  norm          .10000E-03    35.574       -.16014E-06** at limit **
  23  Normalizat    1.2087        .38213       -.21303E-04    .38547E-04
  24  Prefactor     .91483        .15744        .87485E-05   -.10120E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 92.4697
  norm       = 15.5762
  Prefactor  = 72.5629
  Prefactor  = 25.5591
  Prefactor  = 0.0001
  Prefactor  = 54.7261
  Prefactor  = 0.000100049
  Prefactor  = 0.000100015
  Prefactor  = 89.3707
  Prefactor  = 3.94062
  norm       = 0.0001
  norm       = 297.001
  norm       = 10.0742
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.3863
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20873
  Prefactor  = 0.914834
 **********
 **   18 **HESSE 
 **********

 FCN=   5075.179     FROM HESSE     STATUS=OK           399 CALLS     3973 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2098        .10320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     92.470        156.16        .20874E-03   -1.3782    
   4  norm          15.576        26.111        .10160E-03   -1.4918    
   5  Prefactor     72.563        351.39        .23486E-03   -1.4002    
   6  Prefactor     25.559        290.00        .39417E-03   -1.4696    
   7  Prefactor     .10000E-03    93.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.726        66.269        .27108E-03   -1.4227    
   9  Prefactor     .10005E-03    366.28        .42618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    109.33        .14940       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     89.371        140.32        .21210E-03   -1.3814    
  12  Prefactor     3.9406        12.004        .10162E-02   -1.5311    
  13  norm          .10000E-03    1.5025        .84890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          297.00        164.45        .11782E-03   -1.2244    
  15  norm          10.074        76.258        .12609E-03   -1.5073    
  16  Prefactor     .10000E-03    4.1821        .14220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.4913        .12993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1947        .10280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.386        42.759        .73897E-04   -1.4623    
  21  Prefactor     .10000E-03    8.5983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    35.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2087        .38581        .37725E-03   -.86333    
  24  Prefactor     .91483        .15830        .18235E-03   -.95625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29873e-09
Minuit parameter uncertainties:
  1  1.45457e-05
  2  5.59305e-05
  3  156.86
  4  26.1301
  5  322.47
  6  173.257
  7  0.000384771
  8  66.3582
  9  0.00855657
  10  0.00254219
  11  140.843
  12  12.011
  13  3.21102e-06
  14  164.708
  15  55.5328
  16  2.3156e-07
  17  2.43422e-06
  18  1.50679e-06
  19  2.17173e-05
  20  42.8032
  21  4.53864e-06
  22  4.42022e-05
  23  0.386721
  24  0.158383
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  3.848e-04  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.148e-01  1.584e-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.209e+00  3.867e-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.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171394/likelihoodResults_544665601_544924801_4FGL_J1748.0+3403_daily_bin1178.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) = 5075.1785965
delta logL = -5.07711547471e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5075.17854578
delta logL = -5.03687260789e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5160       1.0000          .0000       10.000    
     3 'Normalizat'    1.2087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91484       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=   5075.179     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      251 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.803        .90712E-02** at limit **
   2  Index         2.4804        8.7408        .50000        .27198E-05
   3  Normalizat    1.2087        .65709E-02    .85187E-01   -.19544E-04
   4  Prefactor     .91484        .28211E-02    .45194E-01   -.39307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48041
  Normalizat = 1.20873
  Prefactor  = 0.914836
 **********
 **   18 **HESSE 
 **********

 FCN=   5075.179     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1801.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4804        8.5813        .50000       -.52813    
   3  Normalizat    1.2087        .37101E-01    .37720E-03   -.86334    
   4  Prefactor     .91484        .15956E-01    .18235E-03   -.95625    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97517e-07
Minuit parameter uncertainties:
  1  0.000863082
  2  698.102
  3  0.037102
  4  0.0159558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171394': 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) = 5075.17854575
delta logL = -2.41643647314e-08

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  8.631e-04  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.480e+00  6.981e+02  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.148e-01  1.596e-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:  1.209e+00  3.710e-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/171394/cmap_HighResolution_544665601_544924801_4FGL_J1748.0+3403_daily_bin1178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', job_status='DONE', photon_flux_upper_limit='1.78e-07', time_completed='2021-09-18 14:52:45.126543', job_id='171394', GAL2='0.91', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632001965.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-2.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1178' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:52:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 171394: <4FGL_J1748.0+3403_daily_bin1178> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1178> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 18 14:40:26 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:40:28 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:40:28 2021
Terminated at Sat Sep 18 14:52:45 2021
Results reported at Sat Sep 18 14:52:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1178 267.011 34.0641 544665601 544924801 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 :                                   714.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

