aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 233 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 = 7841
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1204.8+0407_weekly_bin502
RA = 181.203, Dec = 4.12
tmin = 542592001, tmax = 543196801
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='113622', job_status='RUN', time_executed='2021-07-18 18:11:27.498930', time_epoch_executed='1626657087.5' WHERE source_name='4FGL J1204.8+0407' and cadence='weekly' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113622

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113622/ft1_4FGL_J1204.8+0407_weekly_bin502.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113622/ft1_4FGL_J1204.8+0407_weekly_bin502.fits outfile=/scratch/kocevski/113622/ft1_filteredMKT_4FGL_J1204.8+0407_weekly_bin502.fits ra=181.203 dec=4.12 rad=12.0 tmin=542592001.0 tmax=543196801.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 7.02
user 6.60
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.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/113622/ft1_filteredMKT_4FGL_J1204.8+0407_weekly_bin502.fits evtable="EVENTS" outfile="/scratch/kocevski/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.fits" evtable="EVENTS" scfile=/scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits sctable="SC_DATA" outfile=/scratch/kocevski/113622/ltcube_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.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/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits
.....................!
real 16.47
user 15.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/113622/ltcube_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.fits outfile=/scratch/kocevski/113622/expmap_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.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/113622/ltcube_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.fits
.....................!
real 195.11
user 187.64
sys 4.24

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

Setting source of interest to:
4FGL J1204.8+0407 @ 181.203 4.12

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.fits scfile=/scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits outfile=/scratch/kocevski/113622/cmap_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.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=181.203 yref=4.12 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.fits scfile=/scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits outfile=/scratch/kocevski/113622/cmap_HighResolution_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.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=181.203 yref=4.12 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.57
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113622/Model_4FGL_J1204.8+0407_weekly_bin502.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/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.fits.....................!
real 29.68
user 27.89
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.fits', '/scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits', expMap='/scratch/kocevski/113622/expmap_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.fits', expCube='/scratch/kocevski/113622/ltcube_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113622/Model_4FGL_J1204.8+0407_weekly_bin502.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.8+0407'

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/113622/ft1_filtered_4FGL_J1204.8+0407_weekly_bin502.fits
Spacecraft file(s): /scratch/kocevski/113622/ft2_4FGL_J1204.8+0407_weekly_bin502.fits
Exposure map: /scratch/kocevski/113622/expmap_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.fits
Exposure cube: /scratch/kocevski/113622/ltcube_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113622/Model_4FGL_J1204.8+0407_weekly_bin502.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) = 2245.76511377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33603       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.747       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.874       1.0000         .10000E-03   10000.    
     6 'Prefactor '    109.45       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54417       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6459       1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    108.35       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    382.29       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8901       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .61003       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.2333       1.0000         .10000E-03   10000.    
    25 'norm      '    3.4949       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12657E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3023       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2245.757     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3722 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33359        12.410        .50688E-05    .14531E-04
   2  Prefactor     17.625        34.894       -.13211E-06    .49356E-05
   3  Prefactor     .10000E-03    48.023        .16468E-05** at limit **
   4  Prefactor     15.739        542.59        .27707E-06   -.51248E-06
   5  Prefactor     15.877        22.032        .16601E-06   -.23510E-05
   6  Prefactor     109.28        95.737        .42424E-05    .36072E-04
   7  Prefactor     .10000E-03    6.0315        .38466E-06** at limit **
   8  Prefactor     .10000E-03    11.383        .40862E-06** at limit **
   9  Prefactor     .65857        51.932        .79907E-05    .87471E-04
  10  Prefactor     .10000E-03    61.021        .66204E-06** at limit **
  11  Prefactor     .10000E-03    39.311       -.10996E-05** at limit **
  12  Prefactor     .10000E-03    26.986        .61116E-06** at limit **
  13  Prefactor     15.841        44.918        .16290E-05    .11977E-04
  14  Prefactor     .10000E-03    68.360        .17673E-05** at limit **
  15  Prefactor     .10000E-03    10.943        .56882E-06** at limit **
  16  norm          4.6461        4.5769        .66477E-07   -.31777E-04
  17  norm          .10000E-03    5.3757        .11965E-05** at limit **
  18  Prefactor     108.39        87.587       -.39489E-06   -.19446E-04
  19  norm          .10000E-03    24.205        .80980E-07** at limit **
  20  Prefactor     382.22        370.28        .58781E-06   -.15260E-04
  21  norm          1.8905        1.0335       -.31474E-07   -.73816E-03
  22  Prefactor     .10000E-03    8.4863        .24854E-06** at limit **
  23  Prefactor     .55257        723.06       -.57763E-04    .15838E-04
  24  Prefactor     7.2342        11.732        .15568E-06   -.21347E-04
  25  norm          3.4957        2.8002        .53417E-07   -.14062E-03
  26  Prefactor     .10000E-03    13.974        .80868E-06** at limit **
  27  Prefactor     .10000E-03    262.94        .59521E-05** at limit **
  28  Normalizat    1.3023        .37848       -.18874E-05   -.36008E-04
  29  Prefactor     .86608        .29651       -.17397E-05    .44135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.333591
  Prefactor  = 17.6251
  Prefactor  = 0.0001
  Prefactor  = 15.7395
  Prefactor  = 15.8771
  Prefactor  = 109.28
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.658575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.64612
  norm       = 0.0001
  Prefactor  = 108.389
  norm       = 0.0001
  Prefactor  = 382.216
  norm       = 1.8905
  Prefactor  = 0.0001
  Prefactor  = 0.552574
  Prefactor  = 7.23423
  norm       = 3.49574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30227
  Prefactor  = 0.866081
 **********
 **   18 **HESSE 
 **********

 FCN=   2245.757     FROM HESSE     STATUS=OK           557 CALLS     4279 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33359        12.627        .17582E-02   -1.5592    
   2  Prefactor     17.625        34.902        .95400E-04   -1.4868    
   3  Prefactor     .10000E-03    48.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.739        551.01        .10093E-03   -1.4914    
   5  Prefactor     15.877        22.056        .10052E-03   -1.4911    
   6  Prefactor     109.28        99.664        .19223E-03   -1.3613    
   7  Prefactor     .10000E-03    6.0394        .11370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.390        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .65857        329.73        .48660E-02   -1.5546    
  10  Prefactor     .10000E-03    61.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.841        45.038        .10053E-03   -1.4912    
  14  Prefactor     .10000E-03    68.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.962        .15310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6461        4.5692        .95916E-04   -1.5277    
  17  norm          .10000E-03    5.4790        .10735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     108.39        87.700        .19319E-03   -1.3622    
  19  norm          .10000E-03    24.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     382.22        370.05        .10430E-03   -1.1773    
  21  norm          1.8905        1.0342        .33476E-04   -1.5433    
  22  Prefactor     .10000E-03    8.5033        .13480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55257        778.56        .59174E-02   -1.5559    
  24  Prefactor     7.2342        11.726        .14914E-03   -1.5170    
  25  norm          3.4957        2.8020        .67740E-04   -1.5334    
  26  Prefactor     .10000E-03    14.018        .17310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    265.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3023        .45784        .27784E-03   -.83499    
  29  Prefactor     .86608        .35008        .27186E-03   -.97337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60746e-09
Minuit parameter uncertainties:
  1  4.10501
  2  34.9423
  3  7.72492e-05
  4  188.161
  5  22.0675
  6  99.8174
  7  6.82487e-06
  8  5.30431e-07
  9  29.6352
  10  1.29245e-05
  11  2.08888e-05
  12  1.05009e-05
  13  45.1349
  14  3.79771e-05
  15  3.37818e-05
  16  4.56958
  17  1.0519e-05
  18  87.8057
  19  3.30948e-06
  20  372.388
  21  1.03424
  22  6.9478e-07
  23  42.0386
  24  11.7302
  25  2.80214
  26  1.05859e-05
  27  0.000321082
  28  0.459279
  29  0.350992
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.050e-05  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.661e-01  3.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.302e+00  4.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113622/likelihoodResults_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.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) = 2245.75693437
delta logL = -0.000175302738171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2245.75676054
delta logL = -1.47738501255e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2655       1.0000          .0000       10.000    
     3 'Normalizat'    1.3022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86609       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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.

 FCN=   2245.757     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      288 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    139.33        .18142E-01** at limit **
   2  Index         2.0226        6.7178        .50000        .38449E-07
   3  Normalizat    1.3023        .18753E-01    .27784E-03   -.23203E-03
   4  Prefactor     .86608        .15400E-01    .27186E-03   -.22903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Index      = 2.02255
  Normalizat = 1.30227
  Prefactor  = 0.866076
 **********
 **   18 **HESSE 
 **********

 FCN=   2245.757     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    932.90        .26347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0226        5.0971        .50000       -.63788    
   3  Normalizat    1.3023        .50572E-01    .55568E-04   -.83499    
   4  Prefactor     .86608        .41528E-01    .54371E-04   -.97337    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90606e-08
Minuit parameter uncertainties:
  1  0.0102122
  2  2044.51
  3  0.0505737
  4  0.0415298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113622': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2245.75675876
delta logL = 3.07332811644e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.021e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.023e+00  2.045e+03  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.661e-01  4.153e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.302e+00  5.057e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.203 4.120

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/113622/cmap_HighResolution_542592001_543196801_4FGL_J1204.8+0407_weekly_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-07-18 18:20:44.344156', job_id='113622', GAL2='0.87', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1626657644.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='502' AND source_name='4FGL J1204.8+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 18:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 113622: <4FGL_J1204.8+0407_weekly_bin502> in cluster <slac> Done

Job <4FGL_J1204.8+0407_weekly_bin502> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul 18 18:05:56 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 18:07:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 18:07:24 2021
Terminated at Sun Jul 18 18:20:44 2021
Results reported at Sun Jul 18 18:20:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_weekly_bin502 181.203 4.12 542592001 543196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.8+0407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   547.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            888 sec.

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

