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


Performing analysis on: 4FGL_J1200.6+1229_weekly_bin741
RA = 180.173, Dec = 12.4922
tmin = 687139201, tmax = 687744001
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='386735', job_status='RUN', time_executed='2022-10-18 01:05:57.767632', time_epoch_executed='1666080357.77' WHERE source_name='4FGL J1200.6+1229' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386735

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386735/ft1_4FGL_J1200.6+1229_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386735/ft1_4FGL_J1200.6+1229_weekly_bin741.fits outfile=/scratch/kocevski/386735/ft1_filteredMKT_4FGL_J1200.6+1229_weekly_bin741.fits ra=180.173 dec=12.4922 rad=12.0 tmin=687139201.0 tmax=687744001.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.64
user 6.26
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.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/386735/ft1_filteredMKT_4FGL_J1200.6+1229_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/386735/ft1_filtered_4FGL_J1200.6+1229_weekly_bin741.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.54
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 1186

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386735/ft1_filtered_4FGL_J1200.6+1229_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/386735/ltcube_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.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/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.fits
.....................!
real 26.81
user 26.35
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386735/ft1_filtered_4FGL_J1200.6+1229_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/386735/ltcube_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.fits outfile=/scratch/kocevski/386735/expmap_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.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/386735/ltcube_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.fits
.....................!
real 190.18
user 184.94
sys 4.86

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/386735/ft1_filtered_4FGL_J1200.6+1229_weekly_bin741.fits scfile=/scratch/kocevski/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.fits outfile=/scratch/kocevski/386735/cmap_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.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.65
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386735/ft1_filtered_4FGL_J1200.6+1229_weekly_bin741.fits scfile=/scratch/kocevski/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.fits outfile=/scratch/kocevski/386735/cmap_HighResolution_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.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.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386735/ft1_filtered_4FGL_J1200.6+1229_weekly_bin741.fits', '/scratch/kocevski/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.fits', expMap='/scratch/kocevski/386735/expmap_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.fits', expCube='/scratch/kocevski/386735/ltcube_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386735/Model_4FGL_J1200.6+1229_weekly_bin741.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/386735/ft1_filtered_4FGL_J1200.6+1229_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/386735/ft2_4FGL_J1200.6+1229_weekly_bin741.fits
Exposure map: /scratch/kocevski/386735/expmap_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.fits
Exposure cube: /scratch/kocevski/386735/ltcube_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386735/Model_4FGL_J1200.6+1229_weekly_bin741.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) = 13701.6182049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.297       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.0170       1.0000          .0000       .10000E+07
     3 'Prefactor '    .30364E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.7837       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5440       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.9162       1.0000          .0000       .10000E+07
     7 'Prefactor '    .28165E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.6026       1.0000          .0000       .10000E+07
     9 'Prefactor '    39.506       1.0000          .0000       .10000E+07
    10 'Prefactor '    49.986       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19185E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10689E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .59222       1.0000          .0000       .10000E+07
    14 'norm      '    6.9897       1.0000          .0000       .10000E+07
    15 'Prefactor '    .63136E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .18770       1.0000          .0000       .10000E+07
    17 'norm      '    .55123E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    14.434       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0005       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0487       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=   13701.59     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1539 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.283        7.2121        .88591E-06   -.40223E-02
   2  Prefactor     4.0198        5.4985        .21138E-06    .33999E-03
   3  Prefactor     .16653E-09    3.2271        .49213E-06** at limit **
   4  Prefactor     5.9227        87.094       -.13929E-04    .37128E-03
   5  Prefactor     1.5220        5.2478       -.29914E-05    .42115E-02
   6  Prefactor     8.0007        6.5221       -.55805E-07    .89669E-03
   7  Prefactor     .15321E-07    22.343       -.93632E-05** at limit **
   8  Prefactor     1.6011        2.0054        .39880E-06    .23156E-03
   9  Prefactor     41.656        68.283        .81373E-05   -.56522E-03
  10  Prefactor     48.948        31.912       -.12712E-05    .16556E-04
  11  Prefactor      .0000        .77405       -.21424E-06** at limit **
  12  Prefactor      .0000        .51630        .10858E-06** at limit **
  13  Prefactor     .27756E-09    70.856       -.43760E-05** at limit **
  14  norm          7.0056        3.7909        .40763E-07    .57293E-02
  15  Prefactor     .11102E-09    7.6171        .38646E-06** at limit **
  16  norm          .18768        .13105        .10651E-06** at limit **
  17  norm          .16653E-09    17.298        .92740E-06** at limit **
  18  Prefactor     14.442        8.0926       -.25736E-06    .75858E-03
  19  Normalizat    1.0001        .14970       -.69758E-05   -.53526E-04
  20  Prefactor     1.0488        .13466        .50640E-05    .14045E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2832
  Prefactor  = 4.01985
  Prefactor  = 1.66533e-10
  Prefactor  = 5.9227
  Prefactor  = 1.52199
  Prefactor  = 8.00071
  Prefactor  = 1.53211e-08
  Prefactor  = 1.60115
  Prefactor  = 41.6558
  Prefactor  = 48.9475
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  norm       = 7.00557
  Prefactor  = 1.11022e-10
  norm       = 0.187682
  norm       = 1.66533e-10
  Prefactor  = 14.4423
  Normalizat = 1.00013
  Prefactor  = 1.04879
 **********
 **   18 **HESSE 
 **********

 FCN=   13701.59     FROM HESSE     STATUS=OK           333 CALLS     1872 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.283        7.2002        .31201E-03   -1.5644    
   2  Prefactor     4.0198        5.5036        .50292E-03   -1.5668    
   3  Prefactor     .16653E-09    3.2150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9227        88.725        .45976E-03   -1.5659    
   5  Prefactor     1.5220        5.3243        .85742E-03   -1.5683    
   6  Prefactor     8.0007        6.5227        .35613E-03   -1.5651    
   7  Prefactor     .15321E-07    22.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6011        2.0252        .83700E-03   -1.5683    
   9  Prefactor     41.656        68.418        .15911E-03   -1.5579    
  10  Prefactor     48.948        31.943        .14145E-03   -1.5568    
  11  Prefactor      .0000        .76338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .51524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .27756E-09    70.189        .69928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.0056        3.7982        .37922E-03   -1.5655    
  15  Prefactor     .11102E-09    7.6085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .18768        .13859        .76373E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .16653E-09    17.270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.442        8.0870        .26337E-03   -1.5632    
  19  Normalizat    1.0001        .13018        .46173E-01   -.93026    
  20  Prefactor     1.0488        .11657        .39989E-01   -.91120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84331e-09
Minuit parameter uncertainties:
  1  7.20024
  2  5.50359
  3  4.89607e-05
  4  45.8481
  5  5.32431
  6  6.52266
  7  0.00116581
  8  2.02523
  9  68.4193
  10  31.9434
  11  4.29324e-06
  12  3.18047e-06
  13  0.000292706
  14  3.79824
  15  6.27419e-05
  16  0.138591
  17  0.000102014
  18  8.08697
  19  0.130226
  20  0.116597
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  1.532e-08  1.166e-03  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.049e+00  1.166e-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.000e+00  1.302e-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: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386735/likelihoodResults_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.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) = 13701.6090879
delta logL = -0.0235999563829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13700.5218441
delta logL = 1.06364381326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81108       1.0000          .0000       .10000E+07
     2 'Index     '    4.2637       1.0000          .0000       10.000    
     3 'Normalizat'    .92530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0896       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13700.52     FROM MIGRAD    STATUS=FAILED        83 CALLS      260 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81125        19.705        .71576E-05    .66517E-01
   2  Index         4.2637        3.9766        .60672E-02    .78284E-03
   3  Normalizat    .92532        .12525        .27418E-03    .88938E-03
   4  Prefactor     1.0896        .11492        .23769E-03    .68248E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13700.52     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      349 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81125        19.705        .94983E-05    .66517E-01
   2  Index         4.2637        3.9766        .10023E-02    .78284E-03
   3  Normalizat    .92532        .12525        .13614E-03    .88938E-03
   4  Prefactor     1.0896        .11492        .81649E-04    .68248E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13700.52     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      378 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81131        2.2868        .28630E-06    .66875E-01
   2  Index         4.2636        1.3028        .24269E-03    .60974E-03
   3  Normalizat    .92532        .15150        .54836E-04    .84289E-03
   4  Prefactor     1.0896        .13724        .47538E-04    .64676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.811312
  Index      = 4.26363
  Normalizat = 0.925324
  Prefactor  = 1.08959
 **********
 **   18 **HESSE 
 **********

 FCN=   13700.52     FROM HESSE     STATUS=OK            23 CALLS      401 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81131        2.1869        .37408E-06   -1.5690    
   2  Index         4.2636        1.2469        .97074E-05   -.14781    
   3  Normalizat    .92532        .15153        .10967E-04   -.95576    
   4  Prefactor     1.0896        .13725        .95076E-05   -.89800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79502e-09
Minuit parameter uncertainties:
  1  2.18694
  2  1.26053
  3  0.1516
  4  0.137298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386735': 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) = 13700.5218441
delta logL = 1.06364384948

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  8.113e-01  2.187e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  4.264e+00  1.261e+00  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.090e+00  1.373e-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:  9.253e-01  1.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 180.173 12.492
Photon Index (Free Index): 4.26 +/- 1.26
Photon Flux (Free Index): 6.57e-08 +/- 4.88e-08
Energy Flux (Free Index): 9.44e-06 +/- 7.15e-06

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/386735/cmap_HighResolution_687139201_687744001_4FGL_J1200.6+1229_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', comment='SUCCESS', energy_flux2='9.44e-06', dlogl='1.06e+00', photon_flux2='6.57e-08', job_status='DONE', time_completed='2022-10-18 01:21:15.345010', photon_index_error2='1.26', photon_index2='4.26', ts='-0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='5.98e-08', energy_flux_error2='7.15e-06', EG='1.00', time_epoch_completed='1666081275.35', return_code='0', job_id='386735', GAL2='1.09', EG2='0.93', return_code2='0', photon_flux_error2='4.88e-08', ts2='2.34', photon_index='2.39' WHERE bin_id='741' AND source_name='4FGL J1200.6+1229' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:21:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 386735: <4FGL_J1200.6+1229_weekly_bin741> in cluster <slac> Done

Job <4FGL_J1200.6+1229_weekly_bin741> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Oct 18 01:05:26 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:05:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:05:27 2022
Terminated at Tue Oct 18 01:21:16 2022
Results reported at Tue Oct 18 01:21:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_weekly_bin741 180.173 12.4922 687139201 687744001 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 :                                   919.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            950 sec.

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

