aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 79 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 = 74011
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1848.5+3243_monthly_bin170
RA = 282.146, Dec = 32.7309
tmin = 677635201, tmax = 680227201
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='114301', job_status='RUN', time_executed='2022-07-23 02:32:05.531123', time_epoch_executed='1658568725.53' WHERE source_name='4FGL J1848.5+3243' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114301

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114301/ft1_4FGL_J1848.5+3243_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114301/ft1_4FGL_J1848.5+3243_monthly_bin170.fits outfile=/scratch/kocevski/114301/ft1_filteredMKT_4FGL_J1848.5+3243_monthly_bin170.fits ra=282.146 dec=32.7309 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.29
user 31.39
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.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/114301/ft1_filteredMKT_4FGL_J1848.5+3243_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.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.85
user 0.67
sys 0.17

Number of photons that the gtmktime cut: 15118

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/114301/ltcube_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.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/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits
.....................!
real 112.29
user 111.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/114301/ltcube_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.fits outfile=/scratch/kocevski/114301/expmap_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.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/114301/ltcube_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.fits
.....................!
real 191.96
user 185.88
sys 5.30

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
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 241 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1848.5+3243 @ 282.146 32.7309

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.fits scfile=/scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits outfile=/scratch/kocevski/114301/cmap_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.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=282.146 yref=32.7309 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.80
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.fits scfile=/scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits outfile=/scratch/kocevski/114301/cmap_HighResolution_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.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=282.146 yref=32.7309 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.81
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/114301/Model_4FGL_J1848.5+3243_monthly_bin170.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 Cygnus Cocoon
adding source EG_v02
adding source GAL_V02
adding source W 51C
adding source gamma Cygni
Working on...
/scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.fits.....................!
real 2523.29
user 2514.13
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.fits', '/scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits', expMap='/scratch/kocevski/114301/expmap_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.fits', expCube='/scratch/kocevski/114301/ltcube_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114301/Model_4FGL_J1848.5+3243_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1848.5+3243'

4FGL J1848.5+3243
   Spectrum: LogParabola
371         norm:  2.020e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
372        alpha:  2.484e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
373         beta:  1.039e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
374           Eb:  1.215e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/114301/ft1_filtered_4FGL_J1848.5+3243_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/114301/ft2_4FGL_J1848.5+3243_monthly_bin170.fits
Exposure map: /scratch/kocevski/114301/expmap_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.fits
Exposure cube: /scratch/kocevski/114301/ltcube_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114301/Model_4FGL_J1848.5+3243_monthly_bin170.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) = 151174.961438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30164       1.0000         .10000E-03   10000.    
     2 'norm      '    .57646E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1081       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1315       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2230       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0218       1.0000         .10000E-03   10000.    
     7 'norm      '    6.4675       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0387       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .63688       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13343E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.277       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1973       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8610E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   151174.9     FROM MIGRAD    STATUS=FAILED       726 CALLS     2035 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30170        .25001        .17459E-03    .88139E-03
   2  norm          .11612E-03    2.8782        .22917    ** at limit **
   3  Prefactor     2.1107        1.1981        .28416E-03    .12790E-02
   4  norm          3.1316        1.4334        .22909E-03   -.79399E-04
   5  Prefactor     2.2233        1.1771        .13790E-02    .24009E-01
   6  Prefactor     6.0208        5.3420        .16362E-03    .16231E-03
   7  norm          6.4675        4.6151        .15781E-03    .12218E-03
   8  Prefactor     6.0385        2.0292        .81696E-03    .36524E-02
   9  norm          .10000E-03    2.5273        .18142E-02** at limit **
  10  norm          .10000E-03    1.4166        .22985E-02** at limit **
  11  norm          .63711        .42072        .19186E-03    .25636E-02
  12  Prefactor     .10000E-03    1.7079        .36285E-03** at limit **
  13  Prefactor     .10267E-03    3.2833        .20978    ** at limit **
  14  Prefactor     .10000E-03    .73481        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.8181        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.0196        .18142E-02** at limit **
  17  Prefactor     55.277        29.534        .53952E-04    .15644E-03
  18  Normalizat    1.1973        .69173E-01    .46947E-03    .10678E-02
  19  Prefactor     .96446        .17358E-01    .13544E-03    .38589E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   151174.9     FROM SIMPLEX   STATUS=PROGRESS     748 CALLS     2783 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30170        .25001        .25237E-07   -1.5598    
   2  norm          .10007E-03    2.8782        .76974E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1108        1.1981        .13837E-06   -1.5417    
   4  norm          3.1316        1.4334        .13592E-06   -1.5354    
   5  Prefactor     2.2232        1.1771        .71922E-06   -1.5410    
   6  Prefactor     6.0209        5.3420        .40981E-06   -1.5217    
   7  norm          6.4675        4.6151        .46038E-06   -1.5199    
   8  Prefactor     6.0385        2.0292        .13425E-06   -1.5216    
   9  norm          .10000E-03    2.5273        .25342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4166        .12461E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63711        .42072        .25121E-07   -1.5548    
  12  Prefactor     .10000E-03    1.7079        .15783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10267E-03    3.2833        .79321E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .73481        .97979E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8181        .42763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0196        .11649E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     55.277        29.534        .22903E-07   -1.4220    
  18  Normalizat    1.1973        .69173E-01    .13964E-07   -.86685    
  19  Prefactor     .96446        .17358E-01    .15132E-07   -.93924    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   151174.9     FROM MIGRAD    STATUS=CONVERGED    275 CALLS     3058 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30169        .25001        .69838E-05    .16669E-04
   2  norm          .10007E-03    2.9024        .22724    ** at limit **
   3  Prefactor     2.1107        1.1979        .11367E-04    .19204E-04
   4  norm          3.1316        1.4333        .91638E-05    .79399E-05
   5  Prefactor     2.2230        1.1755        .55158E-04   -.13191E-04
   6  Prefactor     6.0210        5.3375        .65449E-05    .22234E-04
   7  norm          6.4675        4.6151        .63125E-05     .0000    
   8  Prefactor     6.0385        2.0285        .32678E-04   -.22265E-04
   9  norm          .10000E-03    2.5276        .36285E-03** at limit **
  10  norm          .10000E-03    1.4503        .91942E-04** at limit **
  11  norm          .63711        .41698        .76744E-05   -.40768E-03
  12  Prefactor     .10000E-03    1.7079        .72569E-04** at limit **
  13  Prefactor     .10267E-03    3.3860        .20472    ** at limit **
  14  Prefactor     .10000E-03    .73492        .36285E-03** at limit **
  15  Prefactor     .10000E-03    6.8183        .36285E-03** at limit **
  16  Prefactor     .10000E-03    1.0198        .36285E-03** at limit **
  17  Prefactor     55.277        29.530        .10790E-04     .0000    
  18  Normalizat    1.1973        .69165E-01    .18779E-04   -.77491E-06
  19  Prefactor     .96446        .17362E-01    .27087E-04   -.42978E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.301694
  norm       = 0.000100069
  Prefactor  = 2.11074
  norm       = 3.13155
  Prefactor  = 2.22305
  Prefactor  = 6.02101
  norm       = 6.46753
  Prefactor  = 6.03849
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.637109
  Prefactor  = 0.0001
  Prefactor  = 0.00010267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.2766
  Normalizat = 1.19734
  Prefactor  = 0.96446
 **********
 **   18 **HESSE 
 **********

 FCN=   151174.9     FROM HESSE     STATUS=OK           268 CALLS     3326 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30169        .25001        .69838E-05   -1.5598    
   2  norm          .10007E-03    2.8996        .22745       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1107        1.1975        .22733E-05   -1.5417    
   4  norm          3.1316        1.4330        .18328E-05   -1.5354    
   5  Prefactor     2.2230        1.1749        .22063E-05   -1.5410    
   6  Prefactor     6.0210        5.3103        .13090E-05   -1.5217    
   7  norm          6.4675        4.6151        .63125E-05   -1.5199    
   8  Prefactor     6.0385        2.0281        .13071E-05   -1.5216    
   9  norm          .10000E-03    2.5276        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4503        .18388E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .63711        .41684        .15349E-05   -1.5548    
  12  Prefactor     .10000E-03    1.7079        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10267E-03    3.3621        .20584       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .73493        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0198        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     55.277        29.531        .10790E-04   -1.4220    
  18  Normalizat    1.1973        .69160E-01    .18779E-04   -.86685    
  19  Prefactor     .96446        .17363E-01    .54174E-05   -.93924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43674e-11
Minuit parameter uncertainties:
  1  0.250009
  2  0.000892013
  3  1.19754
  4  1.43302
  5  1.17491
  6  5.31069
  7  4.61532
  8  2.02811
  9  1.41551e-07
  10  4.25137e-06
  11  0.416842
  12  2.22264e-09
  13  0.00599309
  14  2.0711e-08
  15  1.91004e-08
  16  2.48436e-08
  17  29.5386
  18  0.0691654
  19  0.0173628
Done.

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

Extracting fit parameters...

4FGL J1848.5+3243
   Spectrum: LogParabola
371         norm:  6.371e-01  4.168e-01  1.000e-04  1.000e+04 ( 1.000e-12)
372        alpha:  2.484e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
373         beta:  1.039e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
374           Eb:  1.215e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
850    Prefactor:  9.645e-01  1.736e-02  0.000e+00  1.000e+01 ( 1.000e+00)
851        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
852        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
849   Normalization:  1.197e+00  6.917e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 282.146 32.731
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 1.46e-08 +/- 9.54e-09
Energy Flux (Fixed Index): 4.81e-06 +/- 3.15e-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): 102
logL (Free Index) = 151174.881625
delta logL = 0.000784073927207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 151174.881415
delta logL = 0.000993394874968

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   151174.9     FROM MIGRAD    STATUS=FAILED       102 CALLS      269 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64375        4.8461        .19654E-03   -.42574E-04
   2  alpha         2.4382        3.5469        .50000        .32569E-03
   3  Normalizat    1.1983        .23241E-01    .46932E-03    .31007E-05
   4  Prefactor     .96438        .47605E-02    .13544E-03    .80581E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   151174.9     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      343 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64375        4.8461        .23038E-04   -.42574E-04
   2  alpha         2.4382        3.5469        .18952E-02    .32569E-03
   3  Normalizat    1.1983        .23241E-01    .67864E-04    .31007E-05
   4  Prefactor     .96438        .47605E-02    .74179E-05    .80581E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   151174.9     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      381 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64375        .49563        .78615E-05   -.74041E-04
   2  alpha         2.4382        1.1503        .44618E-01    .56056E-04
   3  Normalizat    1.1983        .70232E-01    .18773E-04    .38758E-05
   4  Prefactor     .96438        .17372E-01    .54176E-05    .13430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.643755
  alpha      = 2.43823
  Normalizat = 1.19828
  Prefactor  = 0.964381
 **********
 **   18 **HESSE 
 **********

 FCN=   151174.9     FROM HESSE     STATUS=OK            25 CALLS      406 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64375        .43310        .15723E-05   -1.5548    
   2  alpha         2.4382        1.0147        .17847E-02   -.24709E-01
   3  Normalizat    1.1983        .68932E-01    .37545E-05   -.86656    
   4  Prefactor     .96438        .17329E-01    .10835E-05   -.93926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78618e-12
Minuit parameter uncertainties:
  1  0.433103
  2  1.04488
  3  0.0689377
  4  0.0173293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114301': 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) = 151174.881415
delta logL = 0.000993410532828

Extracting fit parameters...

4FGL J1848.5+3243
   Spectrum: LogParabola
371         norm:  6.438e-01  4.331e-01  1.000e-04  1.000e+04 ( 1.000e-12)
372        alpha:  2.438e+00  1.045e+00  0.000e+00  5.000e+00 ( 1.000e+00)
373         beta:  1.039e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
374           Eb:  1.215e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
850    Prefactor:  9.644e-01  1.733e-02  0.000e+00  1.000e+01 ( 1.000e+00)
851        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
852        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
849   Normalization:  1.198e+00  6.894e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 282.146 32.731
Photon Index (Free Index): 2.44 +/- 1.04
Photon Flux (Free Index): 1.36e-08 +/- 2.31e-08
Energy Flux (Free Index): 4.72e-06 +/- 3.71e-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/114301/cmap_HighResolution_677635201_680227201_4FGL_J1848.5+3243_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.46e-08', energy_flux2='4.72e-06', photon_flux_error='9.54e-09', dlogl='9.93e-04', energy_flux='4.81e-06', photon_flux2='1.36e-08', job_status='DONE', time_completed='2022-07-23 06:19:58.350112', photon_index_error2='1.04', photon_index2='2.44', ts='4.06', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.71e-06', EG='1.20', time_epoch_completed='1658582398.35', return_code='0', job_id='114301', GAL2='0.96', EG2='1.20', return_code2='0', energy_flux_error='3.15e-06', photon_flux_error2='2.31e-08', ts2='4.06', photon_index='2.48' WHERE bin_id='170' AND source_name='4FGL J1848.5+3243' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 06:19:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 114301: <4FGL_J1848.5+3243_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1848.5+3243_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 02:30:34 2022
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 02:30:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 02:30:35 2022
Terminated at Sat Jul 23 06:20:00 2022
Results reported at Sat Jul 23 06:20:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1848.5+3243_monthly_bin170 282.146 32.7309 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1848.5+3243 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13613.00 sec.
    Max Memory :                                 649 MB
    Average Memory :                             594.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13764 sec.
    Turnaround time :                            13766 sec.

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

