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


Performing analysis on: 4FGL_J1549.3+6310_monthly_bin168
RA = 237.332, Dec = 63.178
tmin = 672451201, tmax = 675043201
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='638459', job_status='RUN', time_executed='2022-05-24 03:29:22.858590', time_epoch_executed='1653388162.86' WHERE source_name='4FGL J1549.3+6310' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638459

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638459/ft1_4FGL_J1549.3+6310_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638459/ft1_4FGL_J1549.3+6310_monthly_bin168.fits outfile=/scratch/kocevski/638459/ft1_filteredMKT_4FGL_J1549.3+6310_monthly_bin168.fits ra=237.332 dec=63.178 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.33
user 28.37
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.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/638459/ft1_filteredMKT_4FGL_J1549.3+6310_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.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.86
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 9360

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/638459/ltcube_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.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/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits
.....................!
real 124.94
user 124.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/638459/ltcube_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.fits outfile=/scratch/kocevski/638459/expmap_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.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/638459/ltcube_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.fits
.....................!
real 190.15
user 185.45
sys 4.62

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

Setting source of interest to:
4FGL J1549.3+6310 @ 237.332 63.178

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.fits scfile=/scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits outfile=/scratch/kocevski/638459/cmap_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.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=237.332 yref=63.178 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.fits scfile=/scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits outfile=/scratch/kocevski/638459/cmap_HighResolution_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.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=237.332 yref=63.178 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/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638459/Model_4FGL_J1549.3+6310_monthly_bin168.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/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.fits....................!
real 673.34
user 672.03
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.fits', '/scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits', expMap='/scratch/kocevski/638459/expmap_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.fits', expCube='/scratch/kocevski/638459/ltcube_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638459/Model_4FGL_J1549.3+6310_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1549.3+6310'

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  7.296e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.442e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638459/ft1_filtered_4FGL_J1549.3+6310_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/638459/ft2_4FGL_J1549.3+6310_monthly_bin168.fits
Exposure map: /scratch/kocevski/638459/expmap_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.fits
Exposure cube: /scratch/kocevski/638459/ltcube_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638459/Model_4FGL_J1549.3+6310_monthly_bin168.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) = 101406.977288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2789       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2705       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11286E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.108       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0486       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3374       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4073       1.0000         .10000E-03   10000.    
    13 'norm      '    .97550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.682       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1916       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.935       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8092       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46025E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .17143       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7395       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1438       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97739       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   101406.9     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2798 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6201       -.33524E-07** at limit **
   2  Prefactor     26.868        31.406       -.37484E-06   -.18869E-06
   3  Prefactor     3.2787        4.0184       -.25287E-06   -.64589E-05
   4  Prefactor     .10000E-03    .65219        .17648E-07** at limit **
   5  Prefactor     1.2694        4.4059       -.12956E-05    .10338E-04
   6  Prefactor     .10000E-03    .37146        .20989E-07** at limit **
   7  Prefactor     9.6825        1.9624        .83822E-08   -.38229E-03
   8  Prefactor     .10000E-03    .44358        .72200E-08** at limit **
   9  Prefactor     13.107        4.8412       -.35594E-06   -.35248E-04
  10  norm          1.0487        .39899       -.10901E-06   -.16234E-02
  11  Prefactor     3.3312        11.893        .14128E-04    .84830E-05
  12  Prefactor     2.4069        1.4843       -.99082E-08   -.63033E-04
  13  norm          .97574        1.5209        .47540E-08   -.14745E-03
  14  Prefactor     .10000E-03    6.5458        .19868E-06** at limit **
  15  Prefactor     11.682        10.124        .15761E-06   -.23639E-05
  16  Prefactor     3.1958        1.3259        .23566E-08   -.10796E-02
  17  Prefactor     10.935        6.4589        .35674E-06   -.83341E-04
  18  norm          2.8102        1.6073       -.26427E-07   -.13830E-03
  19  Prefactor     .12981E-02    .68168        .15527E-07** at limit **
  20  norm          .17121        .12784        .48557E-07    .20712E-02
  21  Prefactor     1.7446        .66908        .81612E-09   -.17062E-02
  22  Prefactor     5.1439        2.8516       -.58811E-06   -.21495E-03
  23  Prefactor     .10000E-03    .26836        .17968E-07** at limit **
  24  Prefactor     .10000E-03    7.1234       -.23686E-06** at limit **
  25  Normalizat    .97738        .40361E-01   -.17776E-06   -.24649E-03
  26  Prefactor     1.0030        .39508E-01    .34524E-07   -.46961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.8677
  Prefactor  = 3.27867
  Prefactor  = 0.0001
  Prefactor  = 1.26938
  Prefactor  = 0.0001
  Prefactor  = 9.68253
  Prefactor  = 0.0001
  Prefactor  = 13.1071
  norm       = 1.04866
  Prefactor  = 3.33124
  Prefactor  = 2.40693
  norm       = 0.975742
  Prefactor  = 0.0001
  Prefactor  = 11.6818
  Prefactor  = 3.19578
  Prefactor  = 10.9352
  norm       = 2.81017
  Prefactor  = 0.00129814
  norm       = 0.171215
  Prefactor  = 1.74457
  Prefactor  = 5.14388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.977383
  Prefactor  = 1.00302
 **********
 **   18 **HESSE 
 **********

 FCN=   101406.9     FROM HESSE     STATUS=OK           482 CALLS     3280 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.868        31.406        .77287E-04   -1.4671    
   3  Prefactor     3.2787        4.0104        .22362E-03   -1.5346    
   4  Prefactor     .10000E-03    .65857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2694        4.4347        .39474E-03   -1.5483    
   6  Prefactor     .10000E-03    3.5791        .35584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.6825        1.8923        .64393E-03   -1.5086    
   8  Prefactor     .10000E-03    2.0372        .40381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.107        4.7868        .11063E-03   -1.4984    
  10  norm          1.0487        .39591        .12001E-03   -1.5503    
  11  Prefactor     3.3312        11.875        .22156E-03   -1.5343    
  12  Prefactor     2.4069        1.4228        .26387E-03   -1.5398    
  13  norm          .97574        1.4617        .42173E-03   -1.5510    
  14  Prefactor     .10000E-03    6.8060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.682        10.124        .11721E-03   -1.5024    
  16  Prefactor     3.1958        1.4821        .11341E-02   -1.5350    
  17  Prefactor     10.935        6.3599        .12115E-03   -1.5046    
  18  norm          2.8102        1.6020        .24270E-03   -1.5373    
  19  Prefactor     .12981E-02    .77851        .82241E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .17121        .11601        .85237E-03   -1.5625    
  21  Prefactor     1.7446        1.4376        .15906E-02   -1.5444    
  22  Prefactor     5.1439        2.7683        .17726E-03   -1.5254    
  23  Prefactor     .10000E-03    1.0537        .31677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.1797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .97738        .47754E-01    .22863E-03   -.93792    
  26  Prefactor     1.0030        .46800E-01    .22719E-03   -.92629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28793e-10
Minuit parameter uncertainties:
  1  1.04313e-06
  2  31.4253
  3  4.01075
  4  1.73205e-07
  5  4.43581
  6  4.54913e-06
  7  1.89236
  8  6.06008e-08
  9  4.78692
  10  0.395915
  11  11.8839
  12  1.42282
  13  1.46174
  14  1.1812e-05
  15  10.1255
  16  1.4821
  17  6.36034
  18  1.60203
  19  0.0610831
  20  0.116009
  21  1.43765
  22  2.76842
  23  3.2289e-06
  24  1.80093e-06
  25  0.0477561
  26  0.0468016
Done.

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

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  3.331e+00  1.188e+01  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.442e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.003e+00  4.680e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  9.774e-01  4.776e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 237.332 63.178
Photon Flux Upper Limit: 1.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.30e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638459/likelihoodResults_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 101406.867364
delta logL = 0.0181419907894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 101406.866685
delta logL = 0.0188203855214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9801       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7401       1.0000          .0000       10.000    
     3 'Normalizat'    .97643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0035       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+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=   101406.9     FROM MIGRAD    STATUS=FAILED        89 CALLS      259 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9781        11.219        .23518E-03   -.38363E-03
   2  Index         2.7435        1.6876        .80340E-02   -.42045E-03
   3  Normalizat    .97639        .46165E-01    .22873E-03   -.68116E-02
   4  Prefactor     1.0035        .46195E-01    .22714E-03   -.48663E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   101406.9     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      332 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9781        11.219        .19024E-03   -1.5363    
   2  Index         2.7435        1.6876        .17919E-02   -.46822    
   3  Normalizat    .97639        .46165E-01    .86014E-04   -.93826    
   4  Prefactor     1.0035        .46195E-01    .78032E-04   -.92612    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   101406.9     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      361 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9773        10.429        .94072E-05   -.32871E-03
   2  Index         2.7437        1.5729        .32136E-03   -.26037E-04
   3  Normalizat    .97639        .46198E-01    .45747E-04   -.97338E-03
   4  Prefactor     1.0035        .46221E-01    .45428E-04   -.68150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97726
  Index      = 2.74373
  Normalizat = 0.976388
  Prefactor  = 1.00354
 **********
 **   18 **HESSE 
 **********

 FCN=   101406.9     FROM HESSE     STATUS=OK            23 CALLS      384 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9773        10.624        .18814E-05   -1.5363    
   2  Index         2.7437        1.5877        .12854E-04   -.46817    
   3  Normalizat    .97639        .46214E-01    .91493E-05   -.93826    
   4  Prefactor     1.0035        .46234E-01    .90856E-05   -.92612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01488e-10
Minuit parameter uncertainties:
  1  10.6312
  2  1.62331
  3  0.0462157
  4  0.0462358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638459': 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) = 101406.866681
delta logL = 0.0188243045268

Extracting fit parameters...

4FGL J1549.3+6310
   Spectrum: PowerLaw
344    Prefactor:  2.977e+00  1.063e+01  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.744e+00  1.623e+00  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  1.323e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.004e+00  4.624e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  9.764e-01  4.622e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 237.332 63.178

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/638459/cmap_HighResolution_672451201_675043201_4FGL_J1549.3+6310_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-04', job_status='DONE', photon_flux_upper_limit='1.20e-08', time_completed='2022-05-24 06:00:01.405300', job_id='638459', GAL2='1.00', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1653397201.41', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.88e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='168' AND source_name='4FGL J1549.3+6310' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:00:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 638459: <4FGL_J1549.3+6310_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1549.3+6310_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 03:20:31 2022
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:27:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:27:42 2022
Terminated at Tue May 24 06:07:48 2022
Results reported at Tue May 24 06:07:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1549.3+6310_monthly_bin168 237.332 63.178 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1549.3+6310 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   8879.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             446.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9606 sec.
    Turnaround time :                            10037 sec.

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

