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


Performing analysis on: 4FGL_J1748.6+7005_monthly_bin86
RA = 267.158, Dec = 70.0969
tmin = 459907201, tmax = 462499201
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='837188', job_status='RUN', time_executed='2021-10-31 17:13:53.537727', time_epoch_executed='1635725633.54' WHERE source_name='4FGL J1748.6+7005' and cadence='monthly' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837188

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837188/ft1_4FGL_J1748.6+7005_monthly_bin86.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837188/ft1_4FGL_J1748.6+7005_monthly_bin86.fits outfile=/scratch/kocevski/837188/ft1_filteredMKT_4FGL_J1748.6+7005_monthly_bin86.fits ra=267.158 dec=70.0969 rad=12.0 tmin=459907201.0 tmax=462499201.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 30.70
user 29.93
sys 0.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.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/837188/ft1_filteredMKT_4FGL_J1748.6+7005_monthly_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.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.84
user 0.66
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/837188/ltcube_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.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/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits
.....................!
real 125.84
user 125.10
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/837188/ltcube_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.fits outfile=/scratch/kocevski/837188/expmap_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.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/837188/ltcube_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.fits
.....................!
real 192.17
user 186.58
sys 5.06

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

Setting source of interest to:
4FGL J1748.6+7005 @ 267.158 70.0969

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.fits scfile=/scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits outfile=/scratch/kocevski/837188/cmap_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.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.158 yref=70.0969 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.82
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.fits scfile=/scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits outfile=/scratch/kocevski/837188/cmap_HighResolution_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.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.158 yref=70.0969 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.79
user 0.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837188/Model_4FGL_J1748.6+7005_monthly_bin86.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/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.fits.....................!
real 1063.23
user 1059.75
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.fits', '/scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits', expMap='/scratch/kocevski/837188/expmap_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.fits', expCube='/scratch/kocevski/837188/ltcube_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/837188/Model_4FGL_J1748.6+7005_monthly_bin86.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.6+7005'

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  4.089e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/837188/ft1_filtered_4FGL_J1748.6+7005_monthly_bin86.fits
Spacecraft file(s): /scratch/kocevski/837188/ft2_4FGL_J1748.6+7005_monthly_bin86.fits
Exposure map: /scratch/kocevski/837188/expmap_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.fits
Exposure cube: /scratch/kocevski/837188/ltcube_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/837188/Model_4FGL_J1748.6+7005_monthly_bin86.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) = 112977.342218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.530       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8400       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3295       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2659       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1662       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17619E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1629       1.0000         .10000E-03   10000.    
    14 'norm      '    4.4046       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0712       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1216       1.0000         .10000E-03   10000.    
    17 'norm      '    8.4805       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13909E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14814E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.887       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11078E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2009       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15241E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11618E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.8131       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5970       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .22400E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    16.142       1.0000         .10000E-03   10000.    
    30 'norm      '    2.1873       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96461       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0574       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   112977.3     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     3824 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1706        2.3967         .0000        .33352E-03
   2  Prefactor     10.615        17.603         .0000        .76725E-04
   3  Prefactor     .10000E-03    2.4859         .0000    ** at limit **
   4  norm          2.8422        2.0469         .0000        .74773E-01
   5  Prefactor     3.3274        4.7561         .0000        .20536E-01
   6  norm          1.0717        .21624         .0000        .20142E-01
   7  Prefactor     2.2474        1.9375         .0000        .63314E-02
   8  Prefactor     2.2659        .77757         .0000        .94483E-02
   9  Prefactor     3.1575        2.7318         .0000        .15459E-02
  10  Prefactor     2.2126        1.7088         .0000        .16674    
  11  Prefactor     .10002E-03    5.2636         .0000    ** at limit **
  12  Prefactor     .10000E-03    1.0724         .0000    ** at limit **
  13  Prefactor     7.2463        11.109         .0000        .23117E-03
  14  norm          4.4048        .78837         .0000        .24371E-01
  15  norm          5.0713        .31520         .0000       -.28989E-02
  16  Prefactor     4.1201        3.0499         .0000        .38498E-02
  17  norm          8.4808        1.5339         .0000        .44483E-01
  18  Prefactor     .10000E-03    2.7148         .0000    ** at limit **
  19  Prefactor     .10000E-03    13.266         .0000    ** at limit **
  20  Prefactor     16.888        2.3165         .0000        .23956E-02
  21  Prefactor     .10000E-03    2.1174         .0000    ** at limit **
  22  Prefactor     6.1996        4.6179         .0000        .50960E-03
  23  Prefactor     .10000E-03    4.0735         .0000    ** at limit **
  24  Prefactor     .10001E-03    5.0738         .0000    ** at limit **
  25  norm          9.8130        1.1890         .0000        .12540E-02
  26  Prefactor     2.5980        3.8744         .0000        .38191E-01
  27  Prefactor     .10000E-03    .28005         .0000    ** at limit **
  28  norm          .10000E-03    1.4891         .0000    ** at limit **
  29  norm          16.143        1.8899         .0000        .12249E-02
  30  norm          2.1874        .82607         .0000        .82761E-02
  31  Normalizat    .96459        .57637E-01     .0000        .18677E-03
  32  Prefactor     1.0574        .34042E-01     .0000        .67728E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.17063
  Prefactor  = 10.6153
  Prefactor  = 0.0001
  norm       = 2.8422
  Prefactor  = 3.32745
  norm       = 1.07168
  Prefactor  = 2.24741
  Prefactor  = 2.26589
  Prefactor  = 3.15748
  Prefactor  = 2.21259
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 7.2463
  norm       = 4.4048
  norm       = 5.07132
  Prefactor  = 4.12012
  norm       = 8.48079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8884
  Prefactor  = 0.0001
  Prefactor  = 6.19965
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 9.81303
  Prefactor  = 2.59801
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 16.1426
  norm       = 2.18744
  Normalizat = 0.964586
  Prefactor  = 1.05739
 **********
 **   18 **HESSE 
 **********

 FCN=   112977.3     FROM HESSE     STATUS=OK           677 CALLS     4501 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1706        2.3960        .22745E-03   -1.5352    
   2  Prefactor     10.615        17.598        .12347E-03   -1.5056    
   3  Prefactor     .10000E-03    2.5093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8422        2.0422        .12064E-02   -1.5371    
   5  Prefactor     3.3274        4.7473        .11091E-02   -1.5343    
   6  norm          1.0717        .21076        .64621E-04   -1.5501    
   7  Prefactor     2.2474        1.9183        .27435E-03   -1.5408    
   8  Prefactor     2.2659        .77211        .16363E-03   -1.5407    
   9  Prefactor     3.1575        2.7176        .22777E-03   -1.5353    
  10  Prefactor     2.2126        1.6881        .13812E-02   -1.5410    
  11  Prefactor     .10002E-03    5.3425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2463        11.004        .14988E-03   -1.5170    
  14  norm          4.4048        .78739        .59703E-03   -1.5288    
  15  norm          5.0713        .31502        .44611E-04   -1.5258    
  16  Prefactor     4.1201        3.0475        .19856E-03   -1.5302    
  17  norm          8.4808        1.5314        .68828E-03   -1.5125    
  18  Prefactor     .10000E-03    2.8072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.888        2.3127        .97463E-04   -1.4886    
  21  Prefactor     .10000E-03    2.1767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1996        4.5958        .16121E-03   -1.5210    
  23  Prefactor     .10000E-03    4.0765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    5.0791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.8130        1.1861        .11645E-03   -1.5081    
  26  Prefactor     2.5980        3.8737        .12659E-02   -1.5386    
  27  Prefactor     .10000E-03    2.3570        .33549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.0759        .79876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          16.143        1.8908        .99687E-04   -1.4904    
  30  norm          2.1874        .81998        .17912E-03   -1.5412    
  31  Normalizat    .96459        .64857E-01    .35167E-03   -.94226    
  32  Prefactor     1.0574        .38208E-01    .21147E-03   -.90840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53735e-08
Minuit parameter uncertainties:
  1  2.39608
  2  17.6067
  3  5.76195e-05
  4  2.04224
  5  4.74788
  6  0.21076
  7  1.91833
  8  0.772116
  9  2.7177
  10  1.68814
  11  0.000607211
  12  2.68796e-05
  13  11.0073
  14  0.787388
  15  0.315021
  16  3.04765
  17  1.53137
  18  4.05777e-05
  19  1.3374e-05
  20  2.31274
  21  2.11572e-05
  22  4.59605
  23  4.81109e-05
  24  0.000515497
  25  1.18613
  26  3.87409
  27  2.79589e-05
  28  0.00013081
  29  1.89078
  30  0.819988
  31  0.0648624
  32  0.0382085
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  4.405e+00  7.874e-01  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.057e+00  3.821e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.646e-01  6.486e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 118.80
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 7.55e-09
Energy Flux (Fixed Index): 2.98e-05 +/- 5.33e-06

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) = 112977.294682
delta logL = 0.000940738173085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 112977.294639
delta logL = 0.000983266188996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4048       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9594       1.0000          .0000       5.0000    
     3 'Normalizat'    .96424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   112977.3     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4047        10.501        .47972E-02    .10336E-02
   2  alpha         1.9594        1.5584        .31600        .20901E-03
   3  Normalizat    .96424        .52983E-01    .79464E-01    .34447E-03
   4  Prefactor     1.0575        .19817E-01    .39491E-01    .49891E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.4047
  alpha      = 1.95945
  Normalizat = 0.964242
  Prefactor  = 1.05747
 **********
 **   18 **HESSE 
 **********

 FCN=   112977.3     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4047        .76879        .11917E-03   -1.5288    
   2  alpha         1.9594        .15299        .16287E-01   -.21794    
   3  Normalizat    .96424        .58889E-01    .35172E-03   -.94238    
   4  Prefactor     1.0575        .36788E-01    .21147E-03   -.90838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75213e-09
Minuit parameter uncertainties:
  1  0.768796
  2  0.153086
  3  0.0588925
  4  0.0367894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837188': 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) = 112977.294639
delta logL = 0.000983276200714

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  4.405e+00  7.688e-01  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.959e+00  1.531e-01  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.057e+00  3.679e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.642e-01  5.889e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 118.84
Ra Dec: 267.158 70.097
Photon Index (Free Index): 1.96 +/- 0.15
Photon Flux (Free Index): 4.26e-08 +/- 1.10e-08
Energy Flux (Free Index): 2.96e-05 +/- 6.64e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/837188/cmap_HighResolution_459907201_462499201_4FGL_J1748.6+7005_monthly_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='2.96e-05', photon_flux_error='7.55e-09', dlogl='9.83e-04', energy_flux='2.98e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-10-31 19:57:27.584720', photon_index_error2='0.15', photon_index2='1.96', ts='118.80', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='6.64e-06', EG='0.96', time_epoch_completed='1635735447.58', return_code='0', job_id='837188', GAL2='1.06', EG2='0.96', return_code2='0', energy_flux_error='5.33e-06', photon_flux_error2='1.10e-08', ts2='118.84', photon_index='1.95' WHERE bin_id='86' AND source_name='4FGL J1748.6+7005' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 31 19:57:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 837188: <4FGL_J1748.6+7005_monthly_bin86> in cluster <slac> Done

Job <4FGL_J1748.6+7005_monthly_bin86> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Oct 31 17:10:14 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 31 17:10:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 31 17:10:20 2021
Terminated at Sun Oct 31 19:57:28 2021
Results reported at Sun Oct 31 19:57:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_monthly_bin86 267.158 70.0969 459907201 462499201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.6+7005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9749.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             459.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10028 sec.
    Turnaround time :                            10034 sec.

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

