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


Performing analysis on: 4FGL_J1200.6+1229_weekly_bin602
RA = 180.173, Dec = 12.4922
tmin = 603072001, tmax = 603676801
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='87116', job_status='RUN', time_executed='2021-07-18 16:32:01.601743', time_epoch_executed='1626651121.6' WHERE source_name='4FGL J1200.6+1229' and cadence='weekly' and bin_id='602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87116

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87116/ft1_4FGL_J1200.6+1229_weekly_bin602.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87116/ft1_4FGL_J1200.6+1229_weekly_bin602.fits outfile=/scratch/kocevski/87116/ft1_filteredMKT_4FGL_J1200.6+1229_weekly_bin602.fits ra=180.173 dec=12.4922 rad=12.0 tmin=603072001.0 tmax=603676801.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 6.09
user 5.78
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.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/87116/ft1_filteredMKT_4FGL_J1200.6+1229_weekly_bin602.fits evtable="EVENTS" outfile="/scratch/kocevski/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.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.56
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.fits" evtable="EVENTS" scfile=/scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits sctable="SC_DATA" outfile=/scratch/kocevski/87116/ltcube_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.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/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits
.....................!
real 36.08
user 35.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits sctable="SC_DATA" expcube=/scratch/kocevski/87116/ltcube_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.fits outfile=/scratch/kocevski/87116/expmap_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.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/87116/ltcube_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.fits
.....................!
real 191.87
user 186.43
sys 4.63

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

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.fits scfile=/scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits outfile=/scratch/kocevski/87116/cmap_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.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=180.173 yref=12.4922 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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.fits scfile=/scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits outfile=/scratch/kocevski/87116/cmap_HighResolution_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.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=180.173 yref=12.4922 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.60
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87116/Model_4FGL_J1200.6+1229_weekly_bin602.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/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.fits.....................!
real 47.59
user 46.05
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.fits', '/scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits', expMap='/scratch/kocevski/87116/expmap_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.fits', expCube='/scratch/kocevski/87116/ltcube_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87116/Model_4FGL_J1200.6+1229_weekly_bin602.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/87116/ft1_filtered_4FGL_J1200.6+1229_weekly_bin602.fits
Spacecraft file(s): /scratch/kocevski/87116/ft2_4FGL_J1200.6+1229_weekly_bin602.fits
Exposure map: /scratch/kocevski/87116/expmap_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.fits
Exposure cube: /scratch/kocevski/87116/ltcube_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87116/Model_4FGL_J1200.6+1229_weekly_bin602.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) = 4739.66310524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.298       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    260.95       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.086       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.840       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.063       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6482       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.895       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0273       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7336       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .23828       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    145.11       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.739       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83478       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1580       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4739.487     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2661 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.813        .31711E-06** at limit **
   2  Prefactor     17.299        30.410       -.19426E-06   -.95356E-05
   3  Prefactor     .10004E-03    99.886        .43678E-05** at limit **
   4  Prefactor     4.2880        19.602        .10635E-04    .21466E-04
   5  Prefactor     261.00        192.18        .25177E-05    .11683E-03
   6  Prefactor     11.086        11.445        .19759E-07    .97672E-05
   7  Prefactor     11.840        10.389        .16644E-06   -.32762E-05
   8  Prefactor     39.065        30.332        .47809E-07    .13000E-04
   9  Prefactor     4.6483        7.5260       -.56032E-06   -.72410E-04
  10  Prefactor     .10000E-03    34.089        .62485E-06** at limit **
  11  Prefactor     15.872        48.350       -.85187E-06   -.84466E-04
  12  Prefactor     .10000E-03    1.9020       -.13196E-07** at limit **
  13  Prefactor     2.0273        3.0101        .20853E-06    .15676E-03
  14  Prefactor     .10000E-03    28.388       -.68753E-06** at limit **
  15  norm          1.7335        2.4179        .13198E-06    .60729E-04
  16  Prefactor     .10002E-03    76.548       -.36477E-05** at limit **
  17  norm          .23834        .27631        .10367E-06    .82741E-03
  18  norm          .10000E-03    20.885       -.36939E-07** at limit **
  19  Prefactor     145.11        131.60       -.35007E-06   -.12054E-04
  20  Prefactor     10.739        11.589        .16004E-05    .69220E-03
  21  Prefactor     .10234E-03    37.653       -.58323E-05** at limit **
  22  Normalizat    .83455        .24882       -.17252E-05    .27865E-03
  23  Prefactor     1.1582        .20659       -.50896E-06    .29372E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 17.2985
  Prefactor  = 0.000100045
  Prefactor  = 4.28804
  Prefactor  = 261.003
  Prefactor  = 11.086
  Prefactor  = 11.8405
  Prefactor  = 39.0653
  Prefactor  = 4.64829
  Prefactor  = 0.000100001
  Prefactor  = 15.872
  Prefactor  = 0.0001
  Prefactor  = 2.02727
  Prefactor  = 0.000100001
  norm       = 1.73353
  Prefactor  = 0.000100016
  norm       = 0.23834
  norm       = 0.0001
  Prefactor  = 145.108
  Prefactor  = 10.7394
  Prefactor  = 0.000102337
  Normalizat = 0.834551
  Prefactor  = 1.1582
 **********
 **   18 **HESSE 
 **********

 FCN=   4739.487     FROM HESSE     STATUS=OK           374 CALLS     3035 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.299        30.404        .96299E-04   -1.4876    
   3  Prefactor     .10004E-03    100.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2880        19.518        .97291E-03   -1.5294    
   5  Prefactor     261.00        192.19        .12546E-03   -1.2463    
   6  Prefactor     11.086        11.441        .12033E-03   -1.5042    
   7  Prefactor     11.840        10.376        .11642E-03   -1.5020    
   8  Prefactor     39.065        30.364        .64130E-04   -1.4457    
   9  Prefactor     4.6483        7.5031        .18667E-03   -1.5277    
  10  Prefactor     .10000E-03    34.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.872        48.303        .10046E-03   -1.4911    
  12  Prefactor     .10000E-03    1.9245        .92494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0273        2.9794        .13796E-03   -1.5423    
  14  Prefactor     .10000E-03    28.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7335        2.3924        .12093E-03   -1.5445    
  16  Prefactor     .10002E-03    78.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .23834        .26245        .35837E-03   -1.5610    
  18  norm          .10000E-03    20.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     145.11        131.55        .33449E-04   -1.3293    
  20  Prefactor     10.739        10.991        .61129E-03   -1.5052    
  21  Prefactor     .10234E-03    208.85        .67143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .83455        .28640        .31636E-03   -.98800    
  23  Prefactor     1.1582        .24399        .24579E-03   -.87627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17835e-08
Minuit parameter uncertainties:
  1  0.000126431
  2  30.431
  3  0.00424468
  4  18.3067
  5  192.654
  6  11.4437
  7  10.3775
  8  30.3765
  9  7.50458
  10  0.000355271
  11  48.4221
  12  8.2205e-08
  13  2.97959
  14  0.000287587
  15  2.39255
  16  0.0022806
  17  0.26245
  18  1.3874e-05
  19  131.821
  20  10.9935
  21  0.0443405
  22  0.28692
  23  0.244229
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.907e+01  3.038e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.158e+00  2.442e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  8.346e-01  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.75
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 8.41e-08 +/- 6.53e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 2.18e-05

TS (Fixed Index): 3.75
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 2.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87116/likelihoodResults_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.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) = 4739.33909585
delta logL = 0.147711910033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4739.33349719
delta logL = 0.153310573686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.914       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9357       1.0000          .0000       10.000    
     3 'Normalizat'    .87178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4739.333     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      236 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.914        51.263        .15861E-02    .38077E-03
   2  Index         1.9357        .93459        .18999       -.34150E-04
   3  Normalizat    .87190        .23612        .70107E-01    .11291E-04
   4  Prefactor     1.1416        .20606        .55944E-01    .32594E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.9138
  Index      = 1.93567
  Normalizat = 0.8719
  Prefactor  = 1.14161
 **********
 **   18 **HESSE 
 **********

 FCN=   4739.333     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.914        36.761        .63446E-04   -1.4444    
   2  Index         1.9357        .81134        .10195E-01   -.65968    
   3  Normalizat    .87190        .27101        .31020E-03   -.97455    
   4  Prefactor     1.1416        .24092        .24737E-03   -.88148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5439e-10
Minuit parameter uncertainties:
  1  36.7818
  2  0.817156
  3  0.271437
  4  0.241153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87116': 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) = 4739.33349707
delta logL = 0.153310694966

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.991e+01  3.678e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.936e+00  8.172e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.142e+00  2.412e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  8.719e-01  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 180.173 12.492
Photon Index (Free Index): 1.94 +/- 0.82
Photon Flux (Free Index): 4.33e-08 +/- 7.15e-08
Energy Flux (Free Index): 3.52e-05 +/- 4.04e-05

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/87116/cmap_HighResolution_603072001_603676801_4FGL_J1200.6+1229_weekly_bin602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', comment='SUCCESS', photon_flux='8.41e-08', energy_flux2='3.52e-05', photon_flux_error='6.53e-08', dlogl='1.53e-01', energy_flux='2.80e-05', photon_flux2='4.33e-08', job_status='DONE', time_completed='2021-07-18 16:43:16.223069', photon_index_error2='0.82', photon_index2='1.94', ts='3.75', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='2.27e-07', energy_flux_error2='4.04e-05', EG='0.83', time_epoch_completed='1626651796.22', return_code='0', job_id='87116', GAL2='1.14', EG2='0.87', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='7.15e-08', ts2='4.01', photon_index='2.39' WHERE bin_id='602' AND source_name='4FGL J1200.6+1229' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 16:43:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 87116: <4FGL_J1200.6+1229_weekly_bin602> in cluster <slac> Done

Job <4FGL_J1200.6+1229_weekly_bin602> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Jul 18 16:31:09 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 16:31:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 16:31:39 2021
Terminated at Sun Jul 18 16:43:17 2021
Results reported at Sun Jul 18 16:43:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_weekly_bin602 180.173 12.4922 603072001 603676801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            728 sec.

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

