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 173 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1750
RA = 180.055, Dec = 2.0172
tmin = 692928001, tmax = 693187201
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='8751', job_status='RUN', time_executed='2022-12-20 00:43:22.898349', time_epoch_executed='1671525802.9' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8751/ft1_4FGL_J1200.2+0201_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8751/ft1_4FGL_J1200.2+0201_daily_bin1750.fits outfile=/scratch/kocevski/8751/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1750.fits ra=180.055 dec=2.0172 rad=12.0 tmin=692928001.0 tmax=693187201.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 3.49
user 3.26
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.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/8751/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 604

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/8751/ltcube_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.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/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits
.....................!
real 11.84
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/8751/ltcube_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.fits outfile=/scratch/kocevski/8751/expmap_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.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/8751/ltcube_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.fits
.....................!
real 192.59
user 186.91
sys 5.30

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.fits scfile=/scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits outfile=/scratch/kocevski/8751/cmap_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.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.055 yref=2.0172 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.fits scfile=/scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits outfile=/scratch/kocevski/8751/cmap_HighResolution_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.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.055 yref=2.0172 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.55
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8751/Model_4FGL_J1200.2+0201_daily_bin1750.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/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.fits.....................!
real 61.64
user 60.26
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.fits', '/scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits', expMap='/scratch/kocevski/8751/expmap_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.fits', expCube='/scratch/kocevski/8751/ltcube_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8751/Model_4FGL_J1200.2+0201_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/8751/ft1_filtered_4FGL_J1200.2+0201_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/8751/ft2_4FGL_J1200.2+0201_daily_bin1750.fits
Exposure map: /scratch/kocevski/8751/expmap_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.fits
Exposure cube: /scratch/kocevski/8751/ltcube_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8751/Model_4FGL_J1200.2+0201_daily_bin1750.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) = 6525.49714685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39393E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .11824E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15470E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .25686E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .96553E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .34201E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29594E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .95506E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .89553E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .73321E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .43855E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .69621E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    11.850       1.0000          .0000       .10000E+07
    14 'Prefactor '    .71650E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .20708       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14263E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    18.727       1.0000          .0000       .10000E+07
    18 'norm      '    .15432E-07   1.0000          .0000       .10000E+07
    19 'norm      '    5.4592       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11793E-02   1.0000          .0000       .10000E+07
    21 'norm      '    3.0915       1.0000          .0000       .10000E+07
    22 'norm      '    1.1888       1.0000          .0000       .10000E+07
    23 'Prefactor '    .17396E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .52028       1.0000          .0000       .10000E+07
    25 'Prefactor '    15.034       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.6855       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62949       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6525.479     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2382 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65892E-07    7.0257       -.34165E-07** at limit **
   2  norm          .61062E-09    4.1622       -.40861E-06** at limit **
   3  Prefactor      .0000        1.3187       -.33159E-07** at limit **
   4  Prefactor     .33606E-06    15.944       -.58984E-06** at limit **
   5  norm          .55511E-10    3.1242       -.36865E-06** at limit **
   6  Prefactor     .66669E-07    8.7044       -.76160E-07** at limit **
   7  Prefactor     .13073E-06    86.396        .54566E-07** at limit **
   8  Prefactor     .11102E-09    4.2527        .19087E-07** at limit **
   9  Prefactor     .19962E-06    3.3974       -.40116E-06** at limit **
  10  Prefactor     .29010E-06    4.4926       -.42795E-06** at limit **
  11  Prefactor     .91038E-08    5.3927       -.28624E-06** at limit **
  12  Prefactor      .0000        37.893        .10511E-07** at limit **
  13  Prefactor     12.626        31.637       -.33843E-06    .27020E-01
  14  Prefactor     .17653E-07    .85569       -.11526E-06** at limit **
  15  Prefactor     .38154E-05    44.931       -.21932E-06** at limit **
  16  Prefactor     .54812E-06    8.3059       -.57182E-06** at limit **
  17  Prefactor     18.776        3.2672       -.27709E-07   -.12376E-01
  18  norm           .0000        .93861       -.20422E-06** at limit **
  19  norm          5.4715        4.0798        .17601E-06    .23701E-04
  20  Prefactor     .18430E-07    4.4473       -.42139E-06** at limit **
  21  norm          2.8348        11.422        .11060E-06    .17060E-01
  22  norm          1.1893        .57492       -.90699E-08   -.50235E-03
  23  Prefactor     .11102E-09    3.6475       -.83608E-07** at limit **
  24  norm          .52137        .93269       -.12071E-07    .20672E-03
  25  Prefactor     15.032        9.8088       -.16470E-06   -.80893E-01
  26  Normalizat    1.6860        .23559       -.22652E-05    .64290E-04
  27  Prefactor     .62887        .18162        .60793E-05    .72302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.58917e-08
  norm       = 6.10623e-10
  Prefactor  = 0
  Prefactor  = 3.36065e-07
  norm       = 5.55112e-11
  Prefactor  = 6.66689e-08
  Prefactor  = 1.30729e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 1.99618e-07
  Prefactor  = 2.90101e-07
  Prefactor  = 9.10383e-09
  Prefactor  = 0
  Prefactor  = 12.6259
  Prefactor  = 1.76525e-08
  Prefactor  = 3.81539e-06
  Prefactor  = 5.48117e-07
  Prefactor  = 18.7764
  norm       = 0
  norm       = 5.47149
  Prefactor  = 1.84297e-08
  norm       = 2.83477
  norm       = 1.18929
  Prefactor  = 1.11022e-10
  norm       = 0.521374
  Prefactor  = 15.0315
  Normalizat = 1.68602
  Prefactor  = 0.628868
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.479     FROM HESSE     STATUS=OK           540 CALLS     2922 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65892E-07    11.644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .61062E-09    15.427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.2827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33606E-06    18.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    3.1182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .66669E-07    8.9252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13073E-06    86.846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    4.2508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .19962E-06    17.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .29010E-06    16.732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .91038E-08    11.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        37.763        .14831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.626        36.244        .29076E-03   -1.5637    
  14  Prefactor     .17653E-07    37.152        .14764E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .38154E-05    61.515        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .54812E-06    13.166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.776        14.712        .23117E-03   -1.5621    
  18  norm           .0000        .93737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4715        4.4202        .42982E-03   -1.5661    
  20  Prefactor     .18430E-07    15.485        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8348        64.556        .57655E-03   -1.5674    
  22  norm          1.1893        .58884        .88715E-03   -1.5686    
  23  Prefactor     .11102E-09    3.6497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .52137        .95903        .76695E-03   -1.5694    
  25  Prefactor     15.032        10.878        .25805E-03   -1.5630    
  26  Normalizat    1.6860        .20559        .53985E-01   -.72677    
  27  Prefactor     .62887        .15680        .65244E-01   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66594e-07
Minuit parameter uncertainties:
  1  0.00175218
  2  0.000193263
  3  8.99621e-07
  4  0.00504407
  5  2.62626e-05
  6  0.00154276
  7  0.00673866
  8  4.37967e-05
  9  0.00368904
  10  0.0044065
  11  0.000645812
  12  4.24517e-05
  13  36.2448
  14  0.00162063
  15  0.0306404
  16  0.00537271
  17  14.712
  18  3.76117e-06
  19  4.42017
  20  0.00106801
  21  27.0559
  22  0.588841
  23  3.58734e-05
  24  0.959031
  25  10.8779
  26  0.205693
  27  0.15691
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.996e-07  3.689e-03  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  6.289e-01  1.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.686e+00  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 8.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8751/likelihoodResults_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.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) = 6525.51067361
delta logL = -0.0318435668078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6523.18068703
delta logL = 2.29814301063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16860       1.0000          .0000       .10000E+07
     2 'Index     '    4.4110       1.0000          .0000       10.000    
     3 'Normalizat'    1.4947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72333       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6523.181     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16786        1.1563        .37323E-03** at limit **
   2  Index         4.4128        1.7622        .70844E-01    .24897E-03
   3  Normalizat    1.4945        .59834E-01    .56523E-01    .72961E-06
   4  Prefactor     .72336        .46859E-01    .61209E-01    .18595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.167863
  Index      = 4.4128
  Normalizat = 1.49453
  Prefactor  = 0.723356
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.181     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16786        2.2407        .16729E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.4128        2.6978        .28209E-02   -.11771    
   3  Normalizat    1.4945        .21964        .24993E-03   -.77932    
   4  Prefactor     .72336        .16829        .27074E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36127e-10
Minuit parameter uncertainties:
  1  1.22658
  2  2.85201
  3  0.219778
  4  0.168412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8751': 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) = 6523.18068515
delta logL = 2.29814489479

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.679e-01  1.227e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  4.413e+00  2.852e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  7.234e-01  1.684e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.495e+00  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 180.055 2.017
Photon Index (Free Index): 4.41 +/- 2.85
Photon Flux (Free Index): 1.50e-07 +/- 8.01e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/8751/cmap_HighResolution_692928001_693187201_4FGL_J1200.2+0201_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', comment='SUCCESS', energy_flux2='2.12e-05', dlogl='2.30e+00', photon_flux2='1.50e-07', job_status='DONE', time_completed='2022-12-20 00:55:15.702407', photon_index_error2='2.85', photon_index2='4.41', ts='-0.00', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='8.21e-08', energy_flux_error2='1.31e-05', EG='1.69', time_epoch_completed='1671526515.7', return_code='0', job_id='8751', GAL2='0.72', EG2='1.49', return_code2='102', photon_flux_error2='8.01e-08', ts2='5.04', photon_index='2.11' WHERE bin_id='1750' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:55:15 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 8751: <4FGL_J1200.2+0201_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:40:19 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:40:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:40:20 2022
Terminated at Tue Dec 20 00:55:16 2022
Results reported at Tue Dec 20 00:55:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1750 180.055 2.0172 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   715.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

