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


Performing analysis on: 4FGL_J1200.6+1229_weekly_bin761
RA = 180.173, Dec = 12.4922
tmin = 699235201, tmax = 699840001
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='485764', job_status='RUN', time_executed='2023-03-07 01:01:27.156418', time_epoch_executed='1678179687.16' WHERE source_name='4FGL J1200.6+1229' and cadence='weekly' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485764

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485764/ft1_4FGL_J1200.6+1229_weekly_bin761.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485764/ft2_4FGL_J1200.6+1229_weekly_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485764/ft1_4FGL_J1200.6+1229_weekly_bin761.fits outfile=/scratch/kocevski/485764/ft1_filteredMKT_4FGL_J1200.6+1229_weekly_bin761.fits ra=180.173 dec=12.4922 rad=12.0 tmin=699235201.0 tmax=699840001.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 8.57
user 8.26
sys 0.28

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

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

Number of photons that the gtmktime cut: 771

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485764/ft1_filtered_4FGL_J1200.6+1229_weekly_bin761.fits" evtable="EVENTS" scfile=/scratch/kocevski/485764/ft2_4FGL_J1200.6+1229_weekly_bin761.fits sctable="SC_DATA" outfile=/scratch/kocevski/485764/ltcube_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.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/485764/ft2_4FGL_J1200.6+1229_weekly_bin761.fits
.....................!
real 29.07
user 28.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485764/ft1_filtered_4FGL_J1200.6+1229_weekly_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/485764/ft2_4FGL_J1200.6+1229_weekly_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/485764/ltcube_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.fits outfile=/scratch/kocevski/485764/expmap_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.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/485764/ltcube_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.fits
.....................!
real 190.41
user 185.17
sys 4.88

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/485764/ft1_filtered_4FGL_J1200.6+1229_weekly_bin761.fits scfile=/scratch/kocevski/485764/ft2_4FGL_J1200.6+1229_weekly_bin761.fits outfile=/scratch/kocevski/485764/cmap_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.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.57
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485764/ft1_filtered_4FGL_J1200.6+1229_weekly_bin761.fits scfile=/scratch/kocevski/485764/ft2_4FGL_J1200.6+1229_weekly_bin761.fits outfile=/scratch/kocevski/485764/cmap_HighResolution_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.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.58
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/485764/ft1_filtered_4FGL_J1200.6+1229_weekly_bin761.fits', '/scratch/kocevski/485764/ft2_4FGL_J1200.6+1229_weekly_bin761.fits', expMap='/scratch/kocevski/485764/expmap_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.fits', expCube='/scratch/kocevski/485764/ltcube_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/485764/Model_4FGL_J1200.6+1229_weekly_bin761.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  0.000e+00  1.000e+06 ( 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/485764/ft1_filtered_4FGL_J1200.6+1229_weekly_bin761.fits
Spacecraft file(s): /scratch/kocevski/485764/ft2_4FGL_J1200.6+1229_weekly_bin761.fits
Exposure map: /scratch/kocevski/485764/expmap_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.fits
Exposure cube: /scratch/kocevski/485764/ltcube_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/485764/Model_4FGL_J1200.6+1229_weekly_bin761.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) = 8697.44299836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57887E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5417       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.9414       1.0000          .0000       .10000E+07
     4 'Prefactor '    35.995       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14620E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12147E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .73264E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.7582       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14029E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16947E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22221E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.0495       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33636E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23064       1.0000          .0000       .10000E+07
    15 'Prefactor '    .34096E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .43701       1.0000          .0000       .10000E+07
    17 'norm      '    .27510E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.4277       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0837       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8697.442     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2351 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11435E-07    6.4715       -.14476E-05** at limit **
   2  Prefactor     6.4805        6.3216       -.49962E-06   -.28812E-03
   3  Prefactor     1.8916        5.2272       -.91632E-07   -.27193E-03
   4  Prefactor     36.531        21.143       -.23235E-06    .25345    
   5  Prefactor     .55511E-10    2.8982       -.46652E-06** at limit **
   6  Prefactor     .63838E-08    5.7787       -.49001E-06** at limit **
   7  Prefactor     .44409E-09    5.1506        .14053E-05** at limit **
   8  Prefactor     1.7599        2.5532       -.15321E-06   -.73846E-03
   9  Prefactor     .96079E-03    1157.7       -.22837E-05** at limit **
  10  Prefactor     .40368E-06    10.712        .16977E-06** at limit **
  11  Prefactor      .0000        .87840       -.23941E-07** at limit **
  12  Prefactor     3.0516        2.7650        .10062E-06    .33255E-03
  13  Prefactor     .49072E-06    10.471       -.19013E-05** at limit **
  14  norm          .22390        5.7014        .51205E-06** at limit **
  15  Prefactor     .16653E-09    18.377        .10369E-05** at limit **
  16  norm          .43701        .19830        .12871E-07   -.27491E-02
  17  norm          .94924E-08    7.7195        .15555E-05** at limit **
  18  Prefactor     9.4682        6.9261       -.43182E-06   -.24952E-02
  19  Normalizat    1.0839        .18238       -.99875E-05   -.10921E-03
  20  Prefactor     1.0343        .16633        .78539E-05   -.42519E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14353e-08
  Prefactor  = 6.48047
  Prefactor  = 1.89165
  Prefactor  = 36.5314
  Prefactor  = 5.55112e-11
  Prefactor  = 6.38378e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 1.75986
  Prefactor  = 0.000960788
  Prefactor  = 4.03677e-07
  Prefactor  = 0
  Prefactor  = 3.05157
  Prefactor  = 4.90719e-07
  norm       = 0.223902
  Prefactor  = 1.66533e-10
  norm       = 0.437011
  norm       = 9.49241e-09
  Prefactor  = 9.46817
  Normalizat = 1.08386
  Prefactor  = 1.03426
 **********
 **   18 **HESSE 
 **********

 FCN=   8697.442     FROM HESSE     STATUS=OK           335 CALLS     2686 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11435E-07    6.4658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4805        6.3411        .39214E-03   -1.5657    
   3  Prefactor     1.8916        5.2665        .74479E-03   -1.5680    
   4  Prefactor     36.531        76.144        .16670E-03   -1.5587    
   5  Prefactor     .55511E-10    2.9138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .63838E-08    5.7625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .44409E-09    5.1611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7599        2.5755        .79003E-03   -1.5681    
   9  Prefactor     .96079E-03    1203.6        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .40368E-06    10.768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .87563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0516        2.7758        .58073E-03   -1.5673    
  13  Prefactor     .49072E-06    10.530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22390        1.1012        .57010E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16653E-09    18.247        .16242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .43701        .20275        .60938E-03   -1.5695    
  17  norm          .94924E-08    7.7784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4682        6.9381        .32615E-03   -1.5646    
  19  Normalizat    1.0839        .15735        .58316E-01   -.90272    
  20  Prefactor     1.0343        .14291        .40933E-01   -.91596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15756e-05
Minuit parameter uncertainties:
  1  0.000543391
  2  6.34107
  3  5.26647
  4  76.1463
  5  2.42385e-05
  6  0.000383636
  7  9.85721e-05
  8  2.57552
  9  2.15117
  10  0.00416972
  11  2.24644e-06
  12  2.77577
  13  0.00454636
  14  0.993079
  15  0.000119045
  16  0.202748
  17  0.000543213
  18  6.93813
  19  0.157422
  20  0.142962
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  4.441e-10  9.857e-05  0.000e+00  1.000e+06 ( 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.034e+00  1.430e-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:  1.084e+00  1.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.173 12.492
Photon Flux Upper Limit: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485764/likelihoodResults_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.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) = 8697.4418021
delta logL = -0.000258372307144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8697.44154469
delta logL = -9.59817043622e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23259E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .99478       1.0000          .0000       10.000    
     3 'Normalizat'    1.0837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0343       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=   8697.442     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      270 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    .10069E-01    .42118E-03** at limit **
   2  Index         3.1030        6.4651        .46202        .19685E-09
   3  Normalizat    1.0839        .24210E-03    .58316E-01    .24939E-03
   4  Prefactor     1.0343        .22703E-03    .40931E-01    .18918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Index      = 3.103
  Normalizat = 1.08386
  Prefactor  = 1.03426
 **********
 **   18 **HESSE 
 **********

 FCN=   8697.442     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    .49715E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1030        7.5525        .50000       -.38915    
   3  Normalizat    1.0839        .53648E-03    .25789E-03   -.90272    
   4  Prefactor     1.0343        .50341E-03    .24575E-03   -.91596    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.23288e-13
Minuit parameter uncertainties:
  1  6.1061e-06
  2  4986.42
  3  0.000536482
  4  0.000503411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485764': 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) = 8697.44154373
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.665e-10  6.106e-06  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  3.103e+00  4.986e+03  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.034e+00  5.034e-04  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:  1.084e+00  5.365e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.173 12.492

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/485764/cmap_HighResolution_699235201_699840001_4FGL_J1200.6+1229_weekly_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2023-03-07 01:15:13.933453', job_id='485764', GAL2='1.03', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1678180513.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-3.64e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='761' AND source_name='4FGL J1200.6+1229' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar  7 01:15:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 485764: <4FGL_J1200.6+1229_weekly_bin761> in cluster <slac> Done

Job <4FGL_J1200.6+1229_weekly_bin761> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar  7 01:00:31 2023
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  7 01:00:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  7 01:00:32 2023
Terminated at Tue Mar  7 01:15:14 2023
Results reported at Tue Mar  7 01:15:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_weekly_bin761 180.173 12.4922 699235201 699840001 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 :                                   826.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             334.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

