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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin1746
RA = 262.02, Dec = 12.2756
tmin = 691891201, tmax = 692150401
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='733866', job_status='RUN', time_executed='2022-12-08 01:23:11.432291', time_epoch_executed='1670491391.43' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733866/ft1_4FGL_J1728.0+1216_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733866/ft1_4FGL_J1728.0+1216_daily_bin1746.fits outfile=/scratch/kocevski/733866/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin1746.fits ra=262.02 dec=12.2756 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.73
user 4.50
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.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/733866/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 1152

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/733866/ltcube_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.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/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits
.....................!
real 12.13
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/733866/ltcube_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.fits outfile=/scratch/kocevski/733866/expmap_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.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/733866/ltcube_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.fits
.....................!
real 190.14
user 184.65
sys 5.15

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 176 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1728.0+1216 @ 262.02 12.2756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits scfile=/scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits outfile=/scratch/kocevski/733866/cmap_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.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=262.02 yref=12.2756 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits scfile=/scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits outfile=/scratch/kocevski/733866/cmap_HighResolution_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.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=262.02 yref=12.2756 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733866/Model_4FGL_J1728.0+1216_daily_bin1746.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits.....................!
real 98.15
user 96.76
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits', '/scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits', expMap='/scratch/kocevski/733866/expmap_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.fits', expCube='/scratch/kocevski/733866/ltcube_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733866/Model_4FGL_J1728.0+1216_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1728.0+1216'

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.205e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.455e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/733866/ft1_filtered_4FGL_J1728.0+1216_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/733866/ft2_4FGL_J1728.0+1216_daily_bin1746.fits
Exposure map: /scratch/kocevski/733866/expmap_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.fits
Exposure cube: /scratch/kocevski/733866/ltcube_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733866/Model_4FGL_J1728.0+1216_daily_bin1746.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) = 12078.9336886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2341       1.0000          .0000       .10000E+07
     2 'Prefactor '    .13718E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .39091       1.0000          .0000       .10000E+07
     4 'Prefactor '    .35223E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.1124       1.0000          .0000       .10000E+07
     6 'norm      '    .69555E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    19.530       1.0000          .0000       .10000E+07
     8 'norm      '    .14092E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .31677E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.0342       1.0000          .0000       .10000E+07
    11 'norm      '    .43127E-04   1.0000          .0000       .10000E+07
    12 'norm      '    2.0975       1.0000          .0000       .10000E+07
    13 'norm      '    25.030       1.0000          .0000       .10000E+07
    14 'norm      '    .35139E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.5516       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1707       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0179       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12078.91     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1015 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3302        8.7915       -.52849E-08   -.20448E-03
   2  Prefactor     .16653E-09    27.050        .83905E-06** at limit **
   3  Prefactor     .72164E-08    63.799        .91458E-06** at limit **
   4  Prefactor     .16653E-09    10.844       -.20336E-06** at limit **
   5  Prefactor     8.2456        10.612       -.54701E-07   -.61550E-03
   6  norm           .0000        1.6616        .24902E-07** at limit **
   7  Prefactor     19.504        1.8705       -.20486E-07   -.41222E-01
   8  norm          .16653E-09    8.1021       -.13169E-06** at limit **
   9  Prefactor     .15543E-08    31.540        .19782E-06** at limit **
  10  Prefactor     3.0395        3.1997       -.26976E-06    .18168E-02
  11  norm          .11102E-09    6.4820       -.52919E-06** at limit **
  12  norm          2.0887        5.5180       -.26853E-06    .20242E-03
  13  norm          26.000        41.545        .37806E-06   -.68375E-03
  14  norm           .0000        .79791       -.14398E-06** at limit **
  15  Prefactor     8.4987        1.1085        .16118E-07    .92433E-03
  16  Normalizat    1.1696        .29777        .20511E-04   -.71787E-04
  17  Prefactor     1.0180        .82930E-01   -.35660E-05   -.13025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33019
  Prefactor  = 1.66533e-10
  Prefactor  = 7.21645e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 8.2456
  norm       = 0
  Prefactor  = 19.5037
  norm       = 1.66533e-10
  Prefactor  = 1.55431e-09
  Prefactor  = 3.03948
  norm       = 1.11022e-10
  norm       = 2.08874
  norm       = 26
  norm       = 0
  Prefactor  = 8.49872
  Normalizat = 1.16964
  Prefactor  = 1.01797
 **********
 **   18 **HESSE 
 **********

 FCN=   12078.91     FROM HESSE     STATUS=OK           261 CALLS     1276 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3302        8.7752        .10109E-02   -1.5685    
   2  Prefactor     .16653E-09    27.031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72164E-08    63.942        .90548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16653E-09    10.806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2456        10.604        .35177E-03   -1.5651    
   6  norm           .0000        1.6431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.504        15.238        .22636E-03   -1.5620    
   8  norm          .16653E-09    8.0999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15543E-08    31.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0395        3.3608        .58228E-03   -1.5673    
  11  norm          .11102E-09    6.4610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0887        5.5158        .71235E-03   -1.5679    
  13  norm          26.000        41.556        .19992E-03   -1.5606    
  14  norm           .0000        .30940        .19807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.4987        23.792        .34255E-03   -1.5650    
  16  Normalizat    1.1696        .25737        .10935       -.87546    
  17  Prefactor     1.0180        .70954E-01    .42355E-01   -.92133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17646e-06
Minuit parameter uncertainties:
  1  6.83308
  2  0.000134619
  3  0.0013576
  4  8.58541e-05
  5  10.6036
  6  2.8579e-07
  7  15.2384
  8  7.11936e-05
  9  0.000445813
  10  3.36082
  11  5.19882e-05
  12  5.51583
  13  41.5564
  14  8.99172e-07
  15  23.7927
  16  0.257648
  17  0.0709604
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  3.039e+00  3.361e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.455e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.018e+00  7.096e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.170e+00  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 6.64e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 2.03e-05

TS (Fixed Index): 1.05
Ra Dec: 262.020 12.276
Photon Flux Upper Limit: 1.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733866/likelihoodResults_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.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) = 12077.7415756
delta logL = 1.1637844337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12077.719509
delta logL = 1.18585105555

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12077.72     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65420        5.4009        .64482E-03    .21393E-01
   2  Index         3.7523        2.3058        .11083        .31193E-03
   3  Normalizat    1.0831        .72386E-01    .11293        .43240E-04
   4  Prefactor     1.0326        .20490E-01    .41062E-01   -.13245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.654199
  Index      = 3.75229
  Normalizat = 1.08315
  Prefactor  = 1.03255
 **********
 **   18 **HESSE 
 **********

 FCN=   12077.72     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65420        11.563        .51227E-05   -1.5692    
   2  Index         3.7523        3.7091        .54684E-02   -.25221    
   3  Normalizat    1.0831        .28086        .50072E-03   -.90295    
   4  Prefactor     1.0326        .80031E-01    .14517E-03   -.91652    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17471e-06
Minuit parameter uncertainties:
  1  5.50069
  2  4.22531
  3  0.28125
  4  0.0800398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733866': 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) = 12077.719509
delta logL = 1.18585110699

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  6.542e-01  5.501e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.752e+00  4.225e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.033e+00  8.004e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.083e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.59
Ra Dec: 262.020 12.276
Photon Index (Free Index): 3.75 +/- 4.23
Photon Flux (Free Index): 1.36e-07 +/- 8.61e-08
Energy Flux (Free Index): 2.14e-05 +/- 2.60e-05

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/733866/cmap_HighResolution_691891201_692150401_4FGL_J1728.0+1216_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='2.14e-05', photon_flux_error='6.64e-08', dlogl='1.19e+00', energy_flux='1.84e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2022-12-08 01:34:56.231681', photon_index_error2='4.23', photon_index2='3.75', ts='1.05', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='2.60e-05', EG='1.17', time_epoch_completed='1670492096.23', return_code='0', job_id='733866', GAL2='1.03', EG2='1.08', return_code2='102', energy_flux_error='2.03e-05', photon_flux_error2='8.61e-08', ts2='3.59', photon_index='2.45' WHERE bin_id='1746' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:34:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 733866: <4FGL_J1728.0+1216_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin1746> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec  8 01:20:18 2022
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:20:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:20:18 2022
Terminated at Thu Dec  8 01:34:56 2022
Results reported at Thu Dec  8 01:34:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin1746 262.02 12.2756 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1728.0+1216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            879 sec.

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

