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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin602
RA = 262.02, Dec = 12.2756
tmin = 395366401, tmax = 395625601
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='728375', job_status='RUN', time_executed='2021-09-17 11:58:40.548669', time_epoch_executed='1631905120.55' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728375

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728375/ft1_4FGL_J1728.0+1216_daily_bin602.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728375/ft2_4FGL_J1728.0+1216_daily_bin602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728375/ft1_4FGL_J1728.0+1216_daily_bin602.fits outfile=/scratch/kocevski/728375/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin602.fits ra=262.02 dec=12.2756 rad=12.0 tmin=395366401.0 tmax=395625601.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 5.10
user 4.88
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728375/ft1_filtered_4FGL_J1728.0+1216_daily_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/728375/ft2_4FGL_J1728.0+1216_daily_bin602.fits sctable="SC_DATA" expcube=/scratch/kocevski/728375/ltcube_395366401_395625601_4FGL_J1728.0+1216_daily_bin602.fits outfile=/scratch/kocevski/728375/expmap_395366401_395625601_4FGL_J1728.0+1216_daily_bin602.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/728375/ltcube_395366401_395625601_4FGL_J1728.0+1216_daily_bin602.fits
.....................!
real 191.33
user 186.08
sys 4.91

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/728375/ft1_filtered_4FGL_J1728.0+1216_daily_bin602.fits scfile=/scratch/kocevski/728375/ft2_4FGL_J1728.0+1216_daily_bin602.fits outfile=/scratch/kocevski/728375/cmap_395366401_395625601_4FGL_J1728.0+1216_daily_bin602.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728375/ft1_filtered_4FGL_J1728.0+1216_daily_bin602.fits scfile=/scratch/kocevski/728375/ft2_4FGL_J1728.0+1216_daily_bin602.fits outfile=/scratch/kocevski/728375/cmap_HighResolution_395366401_395625601_4FGL_J1728.0+1216_daily_bin602.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/728375/ft1_filtered_4FGL_J1728.0+1216_daily_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/728375/ft2_4FGL_J1728.0+1216_daily_bin602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/728375/Model_4FGL_J1728.0+1216_daily_bin602.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/728375/ft1_filtered_4FGL_J1728.0+1216_daily_bin602.fits.....................!
real 88.28
user 86.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0976       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.235       1.0000         .10000E-03   10000.    
     9 'Prefactor '    126.85       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16782E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    13.848       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7666       1.0000         .10000E-03   10000.    
    13 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .74832       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3105       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90811       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=   10370.81     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1743 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1044        .75297E-07** at limit **
   2  Prefactor     23.705        29.713        .87787E-05    .19640E-03
   3  Prefactor     50.564        58.950       -.20829E-05   -.37218E-04
   4  Prefactor     4.0990        4.9961        .10528E-05   -.16991E-02
   5  Prefactor     .10000E-03    10.998        .42058E-06** at limit **
   6  norm          .10000E-03    1.2940       -.20111E-07** at limit **
   7  Prefactor     .10000E-03    17.112       -.12614E-05** at limit **
   8  norm          14.224        11.431        .20738E-06   -.87751E-04
   9  Prefactor     126.85        85.209        .27026E-05    .24436E-04
  10  Prefactor     .10006E-03    1.1835        .25732E-06** at limit **
  11  norm          13.849        10.529       -.17197E-06   -.18303E-04
  12  norm          1.7666        3.5681        .61542E-07   -.27168E-03
  13  norm          .10000E-03    7.8222       -.44255E-06** at limit **
  14  norm          .10000E-03    29.310        .36952E-06** at limit **
  15  norm          .74824        .62295        .73921E-07   -.27743E-02
  16  Prefactor     .10000E-03    7.3684        .28341E-07** at limit **
  17  Normalizat    1.3101        .26454       -.22032E-05   -.43491E-04
  18  Prefactor     .90820        .73072E-01    .18117E-06   -.30029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.705
  Prefactor  = 50.5637
  Prefactor  = 4.09897
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2237
  Prefactor  = 126.855
  Prefactor  = 0.000100061
  norm       = 13.8494
  norm       = 1.76659
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.748241
  Prefactor  = 0.0001
  Normalizat = 1.31006
  Prefactor  = 0.908199
 **********
 **   18 **HESSE 
 **********

 FCN=   10370.81     FROM HESSE     STATUS=OK           242 CALLS     1985 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1439        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.705        29.858        .82289E-04   -1.4734    
   3  Prefactor     50.564        59.332        .56397E-04   -1.4285    
   4  Prefactor     4.0990        8.7557        .99578E-03   -1.5303    
   5  Prefactor     .10000E-03    11.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3063        .11309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.224        11.137        .10616E-03   -1.4954    
   9  Prefactor     126.85        85.384        .35743E-04   -1.3451    
  10  Prefactor     .10006E-03    25.042        .20300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.849        10.527        .10764E-03   -1.4963    
  12  norm          1.7666        3.5594        .26671E-03   -1.5442    
  13  norm          .10000E-03    7.9539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    29.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .74824        .64395        .36551E-03   -1.5535    
  16  Prefactor     .10000E-03    7.3715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3101        .30297        .43807E-03   -.83267    
  18  Prefactor     .90820        .84251E-01    .14719E-03   -.95855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18601e-09
Minuit parameter uncertainties:
  1  5.5898e-06
  2  29.877
  3  59.4013
  4  8.75846
  5  8.0821e-06
  6  7.69831e-07
  7  5.64085e-05
  8  11.1382
  9  85.4669
  10  0.00246988
  11  10.5285
  12  3.55982
  13  2.25539e-05
  14  2.07843e-05
  15  0.643955
  16  1.48175e-06
  17  0.303385
  18  0.0842628
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.001e-04  2.470e-03  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:  9.082e-01  8.426e-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.310e+00  3.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/728375/likelihoodResults_395366401_395625601_4FGL_J1728.0+1216_daily_bin602.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10370.8133621
delta logL = -0.000190483904589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10370.8131034
delta logL = 6.82760673953e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27941E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6076       1.0000          .0000       10.000    
     3 'Normalizat'    1.3100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90823       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=   10370.59     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      301 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81494E-02    .99055E-01    .29847E-02    .10913E-01
   2  Index         5.5063        2.1857        .15463        .10535E-03
   3  Normalizat    1.2432        .34559E-01    .10106       -.47886E-03
   4  Prefactor     .91835        .99284E-02    .33137E-01   -.10101E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00814938
  Index      = 5.50631
  Normalizat = 1.24322
  Prefactor  = 0.918354
 **********
 **   18 **HESSE 
 **********

 FCN=   10370.59     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      334 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81494E-02    .83257        .12325E-03   -1.5690    
   2  Index         5.5063        7.6883        .89081E-02    .10144    
   3  Normalizat    1.2432        .17771        .44784E-03   -.85277    
   4  Prefactor     .91835        .50105E-01    .14642E-03   -.95503    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.14648e-10
Minuit parameter uncertainties:
  1  0.16373
  2  9.45358
  3  0.177794
  4  0.0501071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728375': 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) = 10370.5949591
delta logL = 0.218212543907

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  8.149e-03  1.637e-01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  5.506e+00  9.454e+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:  9.184e-01  5.011e-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.243e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 262.020 12.276

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/728375/cmap_HighResolution_395366401_395625601_4FGL_J1728.0+1216_daily_bin602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-17 12:11:54.714106', job_id='728375', GAL2='0.92', fit_tolerance='1e-08', EG2='1.24', EG='1.31', time_epoch_completed='1631905914.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.18e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='602' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:11:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 728375: <4FGL_J1728.0+1216_daily_bin602> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin602 262.02 12.2756 395366401 395625601 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 :                                   791.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

