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 38 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1848.4+3217_monthly_bin169
RA = 282.105, Dec = 32.295
tmin = 675043201, tmax = 677635201
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='185390', job_status='RUN', time_executed='2022-06-23 02:52:20.737723', time_epoch_executed='1655977940.74' WHERE source_name='4FGL J1848.4+3217' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/185390

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/185390/ft1_4FGL_J1848.4+3217_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/185390/ft1_4FGL_J1848.4+3217_monthly_bin169.fits outfile=/scratch/kocevski/185390/ft1_filteredMKT_4FGL_J1848.4+3217_monthly_bin169.fits ra=282.105 dec=32.295 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.87
user 27.05
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.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/185390/ft1_filteredMKT_4FGL_J1848.4+3217_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.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.88
user 0.68
sys 0.19

Number of photons that the gtmktime cut: 16861

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/185390/ltcube_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.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/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits
.....................!
real 137.93
user 137.28
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/185390/ltcube_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.fits outfile=/scratch/kocevski/185390/expmap_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.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/185390/ltcube_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.fits
.....................!
real 192.72
user 187.76
sys 4.58

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 238 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.4+3217 @ 282.105 32.295

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.fits scfile=/scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits outfile=/scratch/kocevski/185390/cmap_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.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.105 yref=32.295 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.83
user 0.64
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.fits scfile=/scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits outfile=/scratch/kocevski/185390/cmap_HighResolution_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.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.105 yref=32.295 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.65
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/185390/Model_4FGL_J1848.4+3217_monthly_bin169.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/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.fits.....................!
real 2865.79
user 2859.06
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.fits', '/scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits', expMap='/scratch/kocevski/185390/expmap_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.fits', expCube='/scratch/kocevski/185390/ltcube_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/185390/Model_4FGL_J1848.4+3217_monthly_bin169.xml', optimizer='MINUIT')

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

4FGL J1848.4+3217
   Spectrum: LogParabola
364         norm:  2.650e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.282e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  1.813e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.136e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/185390/ft1_filtered_4FGL_J1848.4+3217_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/185390/ft2_4FGL_J1848.4+3217_monthly_bin169.fits
Exposure map: /scratch/kocevski/185390/expmap_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.fits
Exposure cube: /scratch/kocevski/185390/ltcube_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/185390/Model_4FGL_J1848.4+3217_monthly_bin169.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) = 174207.646017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4800       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .95494       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2116       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5873       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.2809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2605       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .16557E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .75132       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6230       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4431       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9598       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3347       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93176       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   174207.6     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1706 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4801        .41529        .37368E-09    .60427E-04
   2  norm          .10000E-03    5.9025        .21707E-05** at limit **
   3  Prefactor     .95502        .79342       -.19459E-07   -.98136E-04
   4  norm          3.2116        1.5088        .19114E-07   -.29578E-03
   5  Prefactor     2.5875        .52220        .25725E-07   -.26217E-02
   6  Prefactor     .10000E-03    5.3227       -.37386E-05** at limit **
   7  norm          7.2810        5.4996        .14471E-07   -.88761E-04
   8  Prefactor     5.2603        1.9165        .29356E-07   -.92529E-03
   9  norm          .10000E-03    2.5598       -.19304E-06** at limit **
  10  norm          .10001E-03    .15667        .65363E-07** at limit **
  11  norm          .75188        .48567       -.19717E-06   -.33588E-02
  12  Prefactor     2.6229        2.2866       -.45731E-06   -.34112E-04
  13  Prefactor     9.6232        11.233        .54393E-05    .28737E-04
  14  Prefactor     3.4432        2.5664       -.21630E-06   -.21251E-04
  15  Prefactor     19.273        17.835       -.88290E-06    .14802E-05
  16  Prefactor     2.9598        2.4810        .24547E-07    .42536E-05
  17  Prefactor     .10000E-03    42.083       -.10060E-05** at limit **
  18  Normalizat    1.3346        .58946E-01   -.92144E-07    .35469E-03
  19  Prefactor     .93176        .14597E-01    .13132E-07    .55860E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48005
  norm       = 0.0001
  Prefactor  = 0.955022
  norm       = 3.21163
  Prefactor  = 2.58747
  Prefactor  = 0.0001
  norm       = 7.28095
  Prefactor  = 5.26026
  norm       = 0.0001
  norm       = 0.000100011
  norm       = 0.751876
  Prefactor  = 2.62291
  Prefactor  = 9.6232
  Prefactor  = 3.44316
  Prefactor  = 19.2734
  Prefactor  = 2.9598
  Prefactor  = 0.0001
  Normalizat = 1.33463
  Prefactor  = 0.931763
 **********
 **   18 **HESSE 
 **********

 FCN=   174207.6     FROM HESSE     STATUS=OK           284 CALLS     1990 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4801        .41554        .69462E-03   -1.5465    
   2  norm          .10000E-03    5.9212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .95502        .78713        .32781E-03   -1.5513    
   4  norm          3.2116        1.5307        .11303E-02   -1.5350    
   5  Prefactor     2.5875        1.1326        .12685E-02   -1.5386    
   6  Prefactor     .10000E-03    5.4316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.2810        5.5024        .74324E-03   -1.5168    
   8  Prefactor     5.2603        2.0397        .87624E-03   -1.5249    
   9  norm          .10000E-03    2.5757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    .14289        .45909E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .75188        .46102        .19097E-03   -1.5535    
  12  Prefactor     2.6229        2.2812        .25181E-03   -1.5384    
  13  Prefactor     9.6232        11.250        .12915E-03   -1.5087    
  14  Prefactor     3.4432        2.5670        .21797E-03   -1.5337    
  15  Prefactor     19.273        17.838        .91229E-04   -1.4830    
  16  Prefactor     2.9598        2.4855        .23604E-03   -1.5364    
  17  Prefactor     .10000E-03    42.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3346        .64228E-01    .46935E-03   -.82538    
  19  Prefactor     .93176        .15806E-01    .13815E-03   -.95040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56526e-10
Minuit parameter uncertainties:
  1  0.415543
  2  1.83466e-06
  3  0.787134
  4  1.53067
  5  1.13265
  6  3.48735e-05
  7  5.50279
  8  2.03977
  9  3.65779e-07
  10  8.00754e-05
  11  0.461023
  12  2.28132
  13  11.2524
  14  2.56713
  15  17.843
  16  2.48559
  17  9.34502e-06
  18  0.0642321
  19  0.0158059
Done.

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

Extracting fit parameters...

4FGL J1848.4+3217
   Spectrum: LogParabola
364         norm:  1.000e-04  8.008e-05  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.282e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  1.813e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.136e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
838    Prefactor:  9.318e-01  1.581e-02  0.000e+00  1.000e+01 ( 1.000e+00)
839        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
840        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
837   Normalization:  1.335e+00  6.423e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 282.105 32.295
Photon Flux Upper Limit: 1.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/185390/likelihoodResults_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.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) = 174207.5722
delta logL = -0.00103257657611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 174207.473897
delta logL = 0.0972699042177

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   174207.5     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      293 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12095        .34114         .0000        .39870E-01
   2  alpha         1.3067        1.4432         .0000       -.12231E-02
   3  Normalizat    1.3347        .57546E-01     .0000        .41228E-03
   4  Prefactor     .93162        .14544E-01     .0000       -.16242E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.120947
  alpha      = 1.30674
  Normalizat = 1.33467
  Prefactor  = 0.931624
 **********
 **   18 **HESSE 
 **********

 FCN=   174207.5     FROM HESSE     STATUS=OK            37 CALLS      330 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12095        .30519        .24250E-02   -1.5638    
   2  alpha         1.3067        .93781        .50000       -.49759    
   3  Normalizat    1.3347        .62034E-01    .46933E-03   -.82537    
   4  Prefactor     .93162        .15716E-01    .13815E-03   -.95045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51181e-06
Minuit parameter uncertainties:
  1  0.305196
  2  0.968914
  3  0.0620377
  4  0.0157162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/185390': 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) = 174207.473897
delta logL = 0.0972706477623

Extracting fit parameters...

4FGL J1848.4+3217
   Spectrum: LogParabola
364         norm:  1.209e-01  3.052e-01  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.307e+00  9.689e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  1.813e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.136e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
838    Prefactor:  9.316e-01  1.572e-02  0.000e+00  1.000e+01 ( 1.000e+00)
839        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
840        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
837   Normalization:  1.335e+00  6.204e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 282.105 32.295

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/185390/cmap_HighResolution_675043201_677635201_4FGL_J1848.4+3217_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-06', job_status='DONE', photon_flux_upper_limit='1.38e-08', time_completed='2022-06-23 06:28:35.618133', job_id='185390', GAL2='0.93', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1655990915.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.73e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='169' AND source_name='4FGL J1848.4+3217' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:28:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 185390: <4FGL_J1848.4+3217_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1848.4+3217_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 02:50:25 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:51:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:51:32 2022
Terminated at Thu Jun 23 06:28:37 2022
Results reported at Thu Jun 23 06:28:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1848.4+3217_monthly_bin169 282.105 32.295 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1848.4+3217 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12943.00 sec.
    Max Memory :                                 653 MB
    Average Memory :                             618.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13025 sec.
    Turnaround time :                            13092 sec.

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

