/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 1 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1728.0+1216_daily_bin152
RA = 262.02, Dec = 12.2756
tmin = 278726401, tmax = 278985601
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='726653', job_status='RUN', time_executed='2021-09-17 11:50:27.952942', time_epoch_executed='1631904627.95' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726653

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726653/ft1_4FGL_J1728.0+1216_daily_bin152.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726653/ft2_4FGL_J1728.0+1216_daily_bin152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726653/ft1_4FGL_J1728.0+1216_daily_bin152.fits outfile=/scratch/kocevski/726653/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin152.fits ra=262.02 dec=12.2756 rad=12.0 tmin=278726401.0 tmax=278985601.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.78
user 3.53
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726653/ft2_4FGL_J1728.0+1216_daily_bin152.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/726653/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin152.fits evtable="EVENTS" outfile="/scratch/kocevski/726653/ft1_filtered_4FGL_J1728.0+1216_daily_bin152.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.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726653/ft1_filtered_4FGL_J1728.0+1216_daily_bin152.fits evtable="EVENTS" scfile=/scratch/kocevski/726653/ft2_4FGL_J1728.0+1216_daily_bin152.fits sctable="SC_DATA" expcube=/scratch/kocevski/726653/ltcube_278726401_278985601_4FGL_J1728.0+1216_daily_bin152.fits outfile=/scratch/kocevski/726653/expmap_278726401_278985601_4FGL_J1728.0+1216_daily_bin152.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/726653/ltcube_278726401_278985601_4FGL_J1728.0+1216_daily_bin152.fits
.....................!
real 190.65
user 184.81
sys 5.48

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/726653/ft1_filtered_4FGL_J1728.0+1216_daily_bin152.fits scfile=/scratch/kocevski/726653/ft2_4FGL_J1728.0+1216_daily_bin152.fits outfile=/scratch/kocevski/726653/cmap_278726401_278985601_4FGL_J1728.0+1216_daily_bin152.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726653/ft1_filtered_4FGL_J1728.0+1216_daily_bin152.fits scfile=/scratch/kocevski/726653/ft2_4FGL_J1728.0+1216_daily_bin152.fits outfile=/scratch/kocevski/726653/cmap_HighResolution_278726401_278985601_4FGL_J1728.0+1216_daily_bin152.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .62303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.954       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5078       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1550       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .44773       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2668       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0914       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=   14593.08     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1531 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4471        .69005E-07** at limit **
   2  Prefactor     2.3948        34.167       -.57537E-05   -.54226E-04
   3  Prefactor     .10000E-03    27.601        .35764E-05** at limit **
   4  Prefactor     .66819        3.7952        .27046E-06   -.32404E-03
   5  Prefactor     .10000E-03    9.1755        .22110E-06** at limit **
   6  norm          .10000E-03    1.2940        .14775E-07** at limit **
   7  Prefactor     26.952        13.791       -.29903E-07   -.92281E-05
   8  norm          .10000E-03    3.0762       -.94616E-08** at limit **
   9  Prefactor     .10000E-03    24.008       -.39373E-05** at limit **
  10  Prefactor     9.5072        2.8005        .13390E-06   -.21923E-02
  11  norm          .10000E-03    4.3807        .81260E-07** at limit **
  12  norm          4.1549        2.7816        .16347E-06   -.12312E-02
  13  norm          .10000E-03    4.5179       -.93359E-07** at limit **
  14  norm          .10000E-03    45.605       -.23559E-06** at limit **
  15  norm          .44776        .66636        .44445E-07   -.81153E-03
  16  Prefactor     .10000E-03    18.403        .87533E-06** at limit **
  17  Normalizat    1.2669        .26108       -.11978E-06   -.37402E-04
  18  Prefactor     1.0914        .69794E-01   -.33615E-07   -.53922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.39481
  Prefactor  = 0.0001
  Prefactor  = 0.668194
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.9518
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.50724
  norm       = 0.0001
  norm       = 4.15493
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.447759
  Prefactor  = 0.0001
  Normalizat = 1.26685
  Prefactor  = 1.09137
 **********
 **   18 **HESSE 
 **********

 FCN=   14593.08     FROM HESSE     STATUS=OK           246 CALLS     1777 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6001        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3948        35.219        .26358E-03   -1.5398    
   3  Prefactor     .10000E-03    27.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66819        15.033        .44237E-02   -1.5544    
   5  Prefactor     .10000E-03    9.2270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.4905        .26625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.952        13.863        .77163E-04   -1.4669    
   8  norm          .10000E-03    3.0788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5072        3.5237        .64632E-03   -1.5091    
  11  norm          .10000E-03    4.4318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1549        3.1806        .91689E-03   -1.5300    
  13  norm          .10000E-03    4.5632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    45.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44776        .66509        .11669E-03   -1.5574    
  16  Prefactor     .10000E-03    18.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2669        .29462        .52856E-03   -.84561    
  18  Prefactor     1.0914        .79735E-01    .15381E-03   -.89743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27751e-09
Minuit parameter uncertainties:
  1  7.17073e-07
  2  18.3803
  3  0.000169295
  4  6.34012
  5  8.93419e-06
  6  2.39382e-06
  7  13.8648
  8  3.81826e-07
  9  0.000175133
  10  3.52378
  11  1.46121e-06
  12  3.18078
  13  1.24024e-06
  14  1.4219e-05
  15  0.665099
  16  3.34446e-05
  17  0.295011
  18  0.079744
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  9.507e+00  3.524e+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.091e+00  7.974e-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.267e+00  2.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.38
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.88e-07 +/- 6.96e-08
Energy Flux (Fixed Index): 5.75e-05 +/- 2.13e-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) = 14593.0786921
delta logL = 0.00324720401113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14593.0761107
delta logL = 0.00582865457181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2197       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4913       1.0000          .0000       10.000    
     3 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0923       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=   14593.08     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      241 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2202        4.5276        .12626E-03   -.98827E-03
   2  Index         2.4913        .35549        .54254E-02   -.25508E-03
   3  Normalizat    1.2610        .29384        .52956E-03    .24641E-03
   4  Prefactor     1.0923        .79180E-01    .15375E-03    .89405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.22019
  Index      = 2.49126
  Normalizat = 1.26101
  Prefactor  = 1.09229
 **********
 **   18 **HESSE 
 **********

 FCN=   14593.08     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2202        4.3251        .50505E-05   -1.5101    
   2  Index         2.4913        .33919        .21702E-03   -.52562    
   3  Normalizat    1.2610        .29360        .21183E-04   -.84738    
   4  Prefactor     1.0923        .79160E-01    .30749E-04   -.89713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62849e-10
Minuit parameter uncertainties:
  1  4.3252
  2  0.339537
  3  0.293989
  4  0.0791686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726653': 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) = 14593.0761107
delta logL = 0.00582866165314

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  9.220e+00  4.325e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.491e+00  3.395e-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.092e+00  7.917e-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.261e+00  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.45
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.49 +/- 0.34
Photon Flux (Free Index): 1.93e-07 +/- 8.59e-08
Energy Flux (Free Index): 5.67e-05 +/- 2.17e-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/726653/cmap_HighResolution_278726401_278985601_4FGL_J1728.0+1216_daily_bin152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-07', energy_flux2='5.67e-05', photon_flux_error='6.96e-08', dlogl='5.83e-03', energy_flux='5.75e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-17 12:03:42.957308', photon_index_error2='0.34', photon_index2='2.49', ts='15.38', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.27', time_epoch_completed='1631905422.96', return_code='0', job_id='726653', GAL2='1.09', EG2='1.26', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='8.59e-08', ts2='15.45', photon_index='2.45' WHERE bin_id='152' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:03:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 726653: <4FGL_J1728.0+1216_daily_bin152> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin152> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 17 11:50:17 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 11:50:18 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:18 2021
Terminated at Fri Sep 17 12:03:43 2021
Results reported at Fri Sep 17 12:03:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin152 262.02 12.2756 278726401 278985601 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 :                                   792.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             359.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

