/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 129 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1728.0+1216_daily_bin228
RA = 262.02, Dec = 12.2756
tmin = 298425601, tmax = 298684801
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='726760', job_status='RUN', time_executed='2021-09-17 11:52:45.661701', time_epoch_executed='1631904765.66' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726760

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726760/ft1_4FGL_J1728.0+1216_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726760/ft1_4FGL_J1728.0+1216_daily_bin228.fits outfile=/scratch/kocevski/726760/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin228.fits ra=262.02 dec=12.2756 rad=12.0 tmin=298425601.0 tmax=298684801.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.30
user 3.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.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/726760/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/726760/ltcube_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.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/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits
.....................!
real 14.41
user 14.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/726760/ltcube_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.fits outfile=/scratch/kocevski/726760/expmap_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.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/726760/ltcube_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.fits
.....................!
real 191.37
user 185.85
sys 4.94

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/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.fits scfile=/scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits outfile=/scratch/kocevski/726760/cmap_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.fits scfile=/scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits outfile=/scratch/kocevski/726760/cmap_HighResolution_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726760/Model_4FGL_J1728.0+1216_daily_bin228.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/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.fits.....................!
real 85.27
user 83.90
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.fits', '/scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits', expMap='/scratch/kocevski/726760/expmap_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.fits', expCube='/scratch/kocevski/726760/ltcube_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/726760/Model_4FGL_J1728.0+1216_daily_bin228.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  1.000e-04  1.000e+04 ( 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/726760/ft1_filtered_4FGL_J1728.0+1216_daily_bin228.fits
Spacecraft file(s): /scratch/kocevski/726760/ft2_4FGL_J1728.0+1216_daily_bin228.fits
Exposure map: /scratch/kocevski/726760/expmap_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.fits
Exposure cube: /scratch/kocevski/726760/ltcube_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/726760/Model_4FGL_J1728.0+1216_daily_bin228.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) = 10158.3212652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7425       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0261       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.8913       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0153       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4692       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0428       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1226       1.0000         .10000E-03   10000.    
    14 'norm      '    60.848       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2497       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3692       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85942       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10158.32     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1744 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7427        5.3227        .11574E-06    .57944E-04
   2  Prefactor     14.693        17.659        .45019E-07    .29524E-06
   3  Prefactor     29.749        72.347       -.91955E-06   -.17684E-04
   4  Prefactor     9.3900        8.8264        .18771E-06    .90250E-04
   5  Prefactor     .10001E-03    9.5005       -.10321E-06** at limit **
   6  norm          4.0261        2.9805        .27272E-07   -.12614E-04
   7  Prefactor     .10000E-03    4.9482       -.10293E-06** at limit **
   8  norm          7.8907        10.339       -.11641E-05   -.10798E-03
   9  Prefactor     .10000E-03    67.106        .20265E-06** at limit **
  10  Prefactor     8.0157        3.6375        .11888E-05   -.12661E-02
  11  norm          6.4683        10.367       -.30326E-06   -.15684E-03
  12  norm          5.0420        5.2365       -.77345E-08   -.20315E-03
  13  norm          2.1223        6.0027        .12620E-05    .14171E-03
  14  norm          60.822        53.483       -.35471E-05   -.33063E-03
  15  norm          1.2496        .75917        .14864E-07   -.10217E-03
  16  Prefactor     .10000E-03    12.379        .20295E-07** at limit **
  17  Normalizat    1.3687        .27051       -.83605E-06    .93363E-05
  18  Prefactor     .85953        .74025E-01   -.36185E-07   -.23843E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.74267
  Prefactor  = 14.6927
  Prefactor  = 29.7491
  Prefactor  = 9.38997
  Prefactor  = 0.000100006
  norm       = 4.02614
  Prefactor  = 0.0001
  norm       = 7.89073
  Prefactor  = 0.0001
  Prefactor  = 8.01569
  norm       = 6.46833
  norm       = 5.04197
  norm       = 2.12235
  norm       = 60.8217
  norm       = 1.24965
  Prefactor  = 0.0001
  Normalizat = 1.36872
  Prefactor  = 0.859529
 **********
 **   18 **HESSE 
 **********

 FCN=   10158.32     FROM HESSE     STATUS=OK           252 CALLS     1996 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7427        5.3212        .15453E-03   -1.5189    
   2  Prefactor     14.693        17.666        .10450E-03   -1.4941    
   3  Prefactor     29.749        72.301        .73452E-04   -1.4617    
   4  Prefactor     9.3900        8.8335        .13078E-03   -1.5095    
   5  Prefactor     .10001E-03    81.938        .58316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0261        2.9701        .14377E-03   -1.5307    
   7  Prefactor     .10000E-03    4.9567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.8907        10.336        .14274E-03   -1.5146    
   9  Prefactor     .10000E-03    67.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.0157        3.7444        .60685E-03   -1.5142    
  11  norm          6.4683        10.413        .15779E-03   -1.5199    
  12  norm          5.0420        5.2528        .17906E-03   -1.5259    
  13  norm          2.1223        5.9967        .28306E-03   -1.5417    
  14  norm          60.822        57.086        .25719E-03   -1.4147    
  15  norm          1.2496        .75119        .65858E-04   -1.5484    
  16  Prefactor     .10000E-03    12.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3687        .30691        .43452E-03   -.81538    
  18  Prefactor     .85953        .85623E-01    .15062E-03   -.97570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04676e-09
Minuit parameter uncertainties:
  1  5.32158
  2  17.6721
  3  72.5149
  4  8.83472
  5  0.00135938
  6  2.97023
  7  1.1098e-05
  8  10.3382
  9  5.40905e-05
  10  3.74455
  11  10.4155
  12  5.25326
  13  5.99843
  14  57.137
  15  0.7512
  16  1.55105e-06
  17  0.307322
  18  0.0856367
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  8.016e+00  3.745e+00  1.000e-04  1.000e+04 ( 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:  8.595e-01  8.564e-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.369e+00  3.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.00
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 7.39e-08
Energy Flux (Fixed Index): 4.84e-05 +/- 2.26e-05

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) = 10158.3079972
delta logL = 0.0092575871422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10158.299248
delta logL = 0.0180067226702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4256       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5287       1.0000          .0000       10.000    
     3 'Normalizat'    1.3600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86107       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10158.30     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      243 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4258        4.9126        .11553E-03   -.34403E-03
   2  Index         2.5290        .42171        .51279E-02   -.92654E-04
   3  Normalizat    1.3601        .29873        .43564E-03    .55272E-04
   4  Prefactor     .86106        .83725E-01    .15049E-03    .27126E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4258
  Index      = 2.52899
  Normalizat = 1.36006
  Prefactor  = 0.861061
 **********
 **   18 **HESSE 
 **********

 FCN=   10158.30     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4258        4.6265        .46211E-05   -1.5163    
   2  Index         2.5290        .39682        .20512E-03   -.51692    
   3  Normalizat    1.3601        .29859        .17426E-04   -.81791    
   4  Prefactor     .86106        .83707E-01    .30098E-04   -.97515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14649e-11
Minuit parameter uncertainties:
  1  4.62677
  2  0.397375
  3  0.298974
  4  0.0837191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726760': 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) = 10158.2992474
delta logL = 0.0180073220472

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  7.426e+00  4.627e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.529e+00  3.974e-01  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:  8.611e-01  8.372e-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.360e+00  2.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.53 +/- 0.40
Photon Flux (Free Index): 1.66e-07 +/- 8.20e-08
Energy Flux (Free Index): 4.66e-05 +/- 2.27e-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/726760/cmap_HighResolution_298425601_298684801_4FGL_J1728.0+1216_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='4.66e-05', photon_flux_error='7.39e-08', dlogl='1.80e-02', energy_flux='4.84e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-17 12:04:19.330068', photon_index_error2='0.40', photon_index2='2.53', ts='8.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.37', time_epoch_completed='1631905459.33', return_code='0', job_id='726760', GAL2='0.86', EG2='1.36', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='8.20e-08', ts2='8.06', photon_index='2.45' WHERE bin_id='228' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:04:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 726760: <4FGL_J1728.0+1216_daily_bin228> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin228> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 17 11:50:25 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 11:50:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 11:50:26 2021
Terminated at Fri Sep 17 12:04:20 2021
Results reported at Fri Sep 17 12:04:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin228 262.02 12.2756 298425601 298684801 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 :                                   683.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

