/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 153 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 = 7426
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1728.0+1216_daily_bin508
RA = 262.02, Dec = 12.2756
tmin = 371001601, tmax = 371260801
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='728233', job_status='RUN', time_executed='2021-09-17 11:58:12.459425', time_epoch_executed='1631905092.46' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728233

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728233/ft1_4FGL_J1728.0+1216_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728233/ft2_4FGL_J1728.0+1216_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728233/ft1_4FGL_J1728.0+1216_daily_bin508.fits outfile=/scratch/kocevski/728233/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin508.fits ra=262.02 dec=12.2756 rad=12.0 tmin=371001601.0 tmax=371260801.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.43
user 6.16
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728233/ft1_filtered_4FGL_J1728.0+1216_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/728233/ft2_4FGL_J1728.0+1216_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/728233/ltcube_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.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/728233/ft2_4FGL_J1728.0+1216_daily_bin508.fits
.....................!
real 11.51
user 11.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728233/ft1_filtered_4FGL_J1728.0+1216_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/728233/ft2_4FGL_J1728.0+1216_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/728233/ltcube_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.fits outfile=/scratch/kocevski/728233/expmap_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.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/728233/ltcube_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.fits
.....................!
real 191.96
user 186.58
sys 5.01

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/728233/ft1_filtered_4FGL_J1728.0+1216_daily_bin508.fits scfile=/scratch/kocevski/728233/ft2_4FGL_J1728.0+1216_daily_bin508.fits outfile=/scratch/kocevski/728233/cmap_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728233/ft1_filtered_4FGL_J1728.0+1216_daily_bin508.fits scfile=/scratch/kocevski/728233/ft2_4FGL_J1728.0+1216_daily_bin508.fits outfile=/scratch/kocevski/728233/cmap_HighResolution_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/728233/ft1_filtered_4FGL_J1728.0+1216_daily_bin508.fits', '/scratch/kocevski/728233/ft2_4FGL_J1728.0+1216_daily_bin508.fits', expMap='/scratch/kocevski/728233/expmap_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.fits', expCube='/scratch/kocevski/728233/ltcube_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/728233/Model_4FGL_J1728.0+1216_daily_bin508.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/728233/ft1_filtered_4FGL_J1728.0+1216_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/728233/ft2_4FGL_J1728.0+1216_daily_bin508.fits
Exposure map: /scratch/kocevski/728233/expmap_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.fits
Exposure cube: /scratch/kocevski/728233/ltcube_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/728233/Model_4FGL_J1728.0+1216_daily_bin508.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) = 11584.5149967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24271E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53581E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .26825       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.767       1.0000         .10000E-03   10000.    
     9 'Prefactor '    195.91       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0347       1.0000         .10000E-03   10000.    
    11 'norm      '    10.872       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10764E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.785       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83359       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0823       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=   11584.50     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     2073 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0870        .90712E-01** at limit **
   2  Prefactor     .10006E-03    18.209        .15702    ** at limit **
   3  Prefactor     .10000E-03    40.125        .90712E-02** at limit **
   4  Prefactor     .10000E-03    9.0480        .90712E-02** at limit **
   5  Prefactor     .10000E-03    7.4879        .90712E-02** at limit **
   6  norm          .25374        1.3231        .65987E-01    .91808E-03
   7  Prefactor     .10000E-03    4.0836        .90712E-02** at limit **
   8  norm          14.765        11.463        .26057E-02   -.21314E-03
   9  Prefactor     195.91        109.31        .72155E-03    .11707E-02
  10  Prefactor     4.0330        2.8779        .50188E-02    .42201E-03
  11  norm          10.865        12.781        .30377E-02   -.33111E-03
  12  norm          .10000E-03    1.4632        .90712E-02** at limit **
  13  norm          .10000E-03    3.7449        .90712E-02** at limit **
  14  norm          .10000E-03    32.817        .90712E-02** at limit **
  15  norm          1.5273        .90689        .86336E-02    .78074E-03
  16  Prefactor     10.755        34.846        .30499E-02    .81484E-03
  17  Normalizat    .83335        .29564        .13323        .72939E-04
  18  Prefactor     1.0825        .78692E-01    .38300E-01   -.27205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100064
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.253736
  Prefactor  = 0.0001
  norm       = 14.7646
  Prefactor  = 195.911
  Prefactor  = 4.03299
  norm       = 10.8649
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.52732
  Prefactor  = 10.7548
  Normalizat = 0.833348
  Prefactor  = 1.08251
 **********
 **   18 **HESSE 
 **********

 FCN=   11584.50     FROM HESSE     STATUS=OK           254 CALLS     2327 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.233        .35913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    18.591        .15413       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .25374        6.3473        .23679E-02   -1.5607    
   7  Prefactor     .10000E-03    4.0875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.765        11.462        .10423E-03   -1.4939    
   9  Prefactor     195.91        108.79        .28862E-04   -1.2899    
  10  Prefactor     4.0330        2.8696        .14341E-03   -1.5306    
  11  norm          10.865        12.771        .12151E-03   -1.5049    
  12  norm          .10000E-03    1.4688        .12714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    32.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5273        .89915        .75527E-04   -1.5461    
  16  Prefactor     10.755        34.858        .12200E-03   -1.5052    
  17  Normalizat    .83335        .31377        .59134E-03   -.98843    
  18  Prefactor     1.0825        .86828E-01    .14532E-03   -.90027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.014e-08
Minuit parameter uncertainties:
  1  6.97413e-06
  2  0.00218235
  3  0.000322455
  4  5.48377e-05
  5  3.0358e-05
  6  2.53793
  7  2.00381e-05
  8  11.4637
  9  108.9
  10  2.86972
  11  12.774
  12  9.42799e-06
  13  1.23205e-05
  14  7.5258e-06
  15  0.89916
  16  34.9236
  17  0.314459
  18  0.0868398
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  4.033e+00  2.870e+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:  1.083e+00  8.684e-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:  8.333e-01  3.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.97e-08 +/- 5.67e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.73e-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) = 11584.2563662
delta logL = 0.240631030752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11584.255852
delta logL = 0.241145225227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0033       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0916       1.0000          .0000       10.000    
     3 'Normalizat'    .85599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0793       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=   11584.26     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0012        83.592        .44946E-02    .23666E-03
   2  Index         2.0916        3.3978        .25287        .35624E-04
   3  Normalizat    .85597        .13542        .13166        .57778E-04
   4  Prefactor     1.0793        .28096E-01    .38434E-01   -.14436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.00118
  Index      = 2.09161
  Normalizat = 0.855972
  Prefactor  = 1.07925
 **********
 **   18 **HESSE 
 **********

 FCN=   11584.26     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0012        3.6102        .16616E-03   -1.5261    
   2  Index         2.0916        .50846        .89291E-02   -.62079    
   3  Normalizat    .85597        .30605        .58433E-03   -.98025    
   4  Prefactor     1.0793        .85160E-01    .14553E-03   -.90132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48001e-10
Minuit parameter uncertainties:
  1  3.61033
  2  0.509798
  3  0.306671
  4  0.0851705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728233': 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) = 11584.2558518
delta logL = 0.241145427848

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  5.001e+00  3.610e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.092e+00  5.098e-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:  1.079e+00  8.517e-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:  8.560e-01  3.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.86
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.09 +/- 0.51
Photon Flux (Free Index): 5.70e-08 +/- 5.31e-08
Energy Flux (Free Index): 3.18e-05 +/- 2.79e-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/728233/cmap_HighResolution_371001601_371260801_4FGL_J1728.0+1216_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.97e-08', energy_flux2='3.18e-05', photon_flux_error='5.67e-08', dlogl='2.41e-01', energy_flux='2.44e-05', photon_flux2='5.70e-08', job_status='DONE', time_completed='2021-09-17 12:11:20.062530', photon_index_error2='0.51', photon_index2='2.09', ts='4.37', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.79e-05', EG='0.83', time_epoch_completed='1631905880.06', return_code='0', job_id='728233', GAL2='1.08', EG2='0.86', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='5.31e-08', ts2='4.86', photon_index='2.45' WHERE bin_id='508' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:11:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 728233: <4FGL_J1728.0+1216_daily_bin508> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin508> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 11:55:28 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 11:55:30 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:55:30 2021
Terminated at Fri Sep 17 12:11:20 2021
Results reported at Fri Sep 17 12:11:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin508 262.02 12.2756 371001601 371260801 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 :                                   784.00 sec.
    Max Memory :                                 1099 MB
    Average Memory :                             321.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

