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


Performing analysis on: 4FGL_J1728.3+5013_monthly_bin45
RA = 262.078, Dec = 50.2267
tmin = 353635201, tmax = 356227201
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='547637', job_status='RUN', time_executed='2021-10-30 21:57:43.362390', time_epoch_executed='1635656263.36' WHERE source_name='4FGL J1728.3+5013' and cadence='monthly' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547637

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547637/ft1_4FGL_J1728.3+5013_monthly_bin45.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547637/ft1_4FGL_J1728.3+5013_monthly_bin45.fits outfile=/scratch/kocevski/547637/ft1_filteredMKT_4FGL_J1728.3+5013_monthly_bin45.fits ra=262.078 dec=50.2267 rad=12.0 tmin=353635201.0 tmax=356227201.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 31.81
user 31.01
sys 0.68

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.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/547637/ft1_filteredMKT_4FGL_J1728.3+5013_monthly_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.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.83
user 0.65
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/547637/ltcube_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.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/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits
.....................!
real 116.58
user 115.80
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/547637/ltcube_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.fits outfile=/scratch/kocevski/547637/expmap_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.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/547637/ltcube_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.fits
.....................!
real 191.84
user 186.58
sys 4.69

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
Added 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1728.3+5013 @ 262.078 50.2267

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.fits scfile=/scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits outfile=/scratch/kocevski/547637/cmap_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.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.078 yref=50.2267 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.80
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.fits scfile=/scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits outfile=/scratch/kocevski/547637/cmap_HighResolution_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.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.078 yref=50.2267 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.78
user 0.63
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547637/Model_4FGL_J1728.3+5013_monthly_bin45.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 GAL_V02
Working on...
/scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.fits.....................!
real 570.43
user 567.12
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.fits', '/scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits', expMap='/scratch/kocevski/547637/expmap_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.fits', expCube='/scratch/kocevski/547637/ltcube_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/547637/Model_4FGL_J1728.3+5013_monthly_bin45.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1728.3+5013'

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.850e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/547637/ft1_filtered_4FGL_J1728.3+5013_monthly_bin45.fits
Spacecraft file(s): /scratch/kocevski/547637/ft2_4FGL_J1728.3+5013_monthly_bin45.fits
Exposure map: /scratch/kocevski/547637/expmap_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.fits
Exposure cube: /scratch/kocevski/547637/ltcube_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/547637/Model_4FGL_J1728.3+5013_monthly_bin45.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) = 82079.3741502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8895       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3272       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46205E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .80806       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6872       1.0000         .10000E-03   10000.    
    10 'norm      '    .84172       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9138       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17734       1.0000         .10000E-03   10000.    
    14 'norm      '    .12010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4974       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5477       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77422       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.532       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6775       1.0000         .10000E-03   10000.    
    21 'norm      '    5.4751       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11349E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7367       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.2589       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.778       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9600       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .68573       1.0000         .10000E-03   10000.    
    29 'norm      '    .89098E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13861E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    6.9751       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    7.0464       1.0000         .10000E-03   10000.    
    34 'norm      '    4.6821       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .98878       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   82079.37     FROM MIGRAD    STATUS=CONVERGED   1100 CALLS     5606 TOTAL
                     EDM=   .33E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8858        1.7709         .0000        .19581    
   2  norm          5.3272        3.5351         .0000       -.22056E-02
   3  norm          .10000E-03    .62780         .0000    ** at limit **
   4  Prefactor     .10000E-03    .19717         .0000    ** at limit **
   5  Prefactor     .17165E-01    .40851         .0000        .19827E-02
   6  Prefactor     1.9190        .78154         .0000        .52254E-02
   7  Prefactor     .10000E-03    .11549         .0000    ** at limit **
   8  Prefactor     .80555        2.0210         .0000        .27915    
   9  Prefactor     5.6884        3.8017         .0000       -.32077E-02
  10  norm          .84170        .22651         .0000        .42946E-02
  11  Prefactor     1.9136        1.8044         .0000        .20418    
  12  norm          2.5167        .29847         .0000        .24223E-02
  13  Prefactor     .16857        .62839         .0000        .38446E-02
  14  norm          .10000E-03    .32808         .0000    ** at limit **
  15  Prefactor     2.4943        1.7256         .0000        .27143E-02
  16  norm          2.5476        .53189         .0000        .47496E-02
  17  Prefactor     .77434        .52938         .0000        .23271E-02
  18  Prefactor     20.696        17.855         .0000       -.15501E-02
  19  norm          1.8718        1.2598         .0000        .56618E-02
  20  Prefactor     8.6773        15.260         .0000       -.17207E-03
  21  norm          5.4710        1.5559         .0000        .49568E-01
  22  Prefactor     .10000E-03    7.2656         .0000    ** at limit **
  23  Prefactor     2.7385        1.2481         .0000        .61131E-02
  24  Prefactor     6.2114        10.759         .0000        .27057E-02
  25  Prefactor     22.640        19.472         .0000       -.20664E-02
  26  Prefactor     .10000E-03    3.5712         .0000    ** at limit **
  27  Prefactor     2.9575        2.1404         .0000        .65734E-01
  28  Prefactor     .68944        4.9023         .0000        .73417E-01
  29  norm          .90000E-01    .46568         .0000        .46887E-02
  30  Prefactor     .10010E-03    1.0285         .0000    ** at limit **
  31  norm          6.9776        2.1013         .0000        .12368E-02
  32  Prefactor     .10000E-03    1.3085         .0000    ** at limit **
  33  norm          7.0468        2.3282         .0000        .22455E-01
  34  norm          4.6853        2.1448         .0000       -.43508E-03
  35  Normalizat    1.0841        .61227E-01     .0000        .24880E-03
  36  Prefactor     .98879        .42849E-01     .0000        .28254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88581
  norm       = 5.32716
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0171648
  Prefactor  = 1.91898
  Prefactor  = 0.0001
  Prefactor  = 0.805552
  Prefactor  = 5.68842
  norm       = 0.841702
  Prefactor  = 1.91355
  norm       = 2.51675
  Prefactor  = 0.168572
  norm       = 0.0001
  Prefactor  = 2.49434
  norm       = 2.5476
  Prefactor  = 0.774344
  Prefactor  = 20.6955
  norm       = 1.87183
  Prefactor  = 8.67729
  norm       = 5.47095
  Prefactor  = 0.0001
  Prefactor  = 2.73848
  Prefactor  = 6.21142
  Prefactor  = 22.6404
  Prefactor  = 0.0001
  Prefactor  = 2.95746
  Prefactor  = 0.689444
  norm       = 0.0900001
  Prefactor  = 0.000100104
  norm       = 6.97759
  Prefactor  = 0.0001
  norm       = 7.04682
  norm       = 4.68532
  Normalizat = 1.08413
  Prefactor  = 0.988793
 **********
 **   18 **HESSE 
 **********

 FCN=   82079.37     FROM HESSE     STATUS=OK           877 CALLS     6483 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8858        1.7692        .15136E-02   -1.5433    
   2  norm          5.3272        3.5267        .17413E-03   -1.5246    
   3  norm          .10000E-03    .58230        .11699       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .49367        .24488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .17165E-01    .46336        .54713E-01   -1.5682    
   6  Prefactor     1.9190        .77296        .15209E-03   -1.5431    
   7  Prefactor     .10000E-03    .23740        .18874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .80555        2.0157        .24940E-02   -1.5528    
   9  Prefactor     5.6884        3.7962        .16844E-03   -1.5231    
  10  norm          .84170        .21961        .66520E-04   -1.5524    
  11  Prefactor     1.9136        1.7848        .15023E-02   -1.5431    
  12  norm          2.5167        .29685        .50418E-04   -1.5391    
  13  Prefactor     .16857        5.8478        .35746E-02   -1.5626    
  14  norm          .10000E-03    .45153        .63151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4943        1.7174        .25862E-03   -1.5392    
  16  norm          2.5476        .52917        .90079E-04   -1.5389    
  17  Prefactor     .77434        .53946        .16704E-03   -1.5532    
  18  Prefactor     20.696        19.579        .88393E-04   -1.4798    
  19  norm          1.8718        1.2397        .24248E-03   -1.5434    
  20  Prefactor     8.6773        15.106        .13607E-03   -1.5119    
  21  norm          5.4710        1.5507        .85860E-03   -1.5240    
  22  Prefactor     .10000E-03    7.3645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7385        1.2378        .20000E-03   -1.5377    
  24  Prefactor     6.2114        10.725        .80227E-03   -1.5209    
  25  Prefactor     22.640        19.452        .83927E-04   -1.4756    
  26  Prefactor     .10000E-03    3.5946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.9575        2.1333        .11801E-02   -1.5364    
  28  Prefactor     .68944        5.0039        .24014E-02   -1.5542    
  29  norm          .90000E-01    .56379        .61230E-01   -1.5648    
  30  Prefactor     .10010E-03    1.3959        .83905E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          6.9776        2.0995        .15190E-03   -1.5180    
  32  Prefactor     .10000E-03    1.3106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          7.0468        2.3277        .75562E-03   -1.5177    
  34  norm          4.6853        2.1456        .18598E-03   -1.5275    
  35  Normalizat    1.0841        .72809E-01    .28414E-03   -.90263    
  36  Prefactor     .98879        .51293E-01    .22208E-03   -.93104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12553e-06
Minuit parameter uncertainties:
  1  1.76928
  2  3.52688
  3  3.24181e-06
  4  5.93994e-07
  5  0.177846
  6  0.772962
  7  6.21246e-07
  8  2.01588
  9  3.79636
  10  0.219608
  11  1.78481
  12  0.296852
  13  1.98534
  14  1.71475e-05
  15  1.71747
  16  0.52917
  17  0.539459
  18  19.5847
  19  1.23975
  20  15.113
  21  1.55074
  22  3.50184e-05
  23  1.23779
  24  10.7282
  25  19.4575
  26  1.8881e-05
  27  2.13336
  28  3.71494
  29  0.450271
  30  0.00076173
  31  2.09955
  32  3.21839e-06
  33  2.32772
  34  2.14559
  35  0.0728152
  36  0.0512953
Done.

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

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  7.743e-01  5.395e-01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  9.888e-01  5.130e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.084e+00  7.282e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.30
Ra Dec: 262.078 50.227
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 4.31e-09 +/- 3.00e-09
Energy Flux (Fixed Index): 5.56e-06 +/- 3.87e-06

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) = 82079.1808059
delta logL = 0.186436478034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 82079.1793725
delta logL = 0.18786994087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74337       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4996       1.0000          .0000       10.000    
     3 'Normalizat'    1.0850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98917       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   82079.18     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      243 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74391        1.7637        .40361E-01    .13247E-02
   2  Index         1.4996        .19224        .50000        .49096E-05
   3  Normalizat    1.0850        .33067E-02    .64212E-01    .18720E-03
   4  Prefactor     .98917        .24904E-02    .46132E-01    .11547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.743913
  Index      = 1.49961
  Normalizat = 1.08501
  Prefactor  = 0.989172
 **********
 **   18 **HESSE 
 **********

 FCN=   82079.18     FROM HESSE     STATUS=OK            35 CALLS      278 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74391        .61371        .24476E-02   -1.5535    
   2  Index         1.4996        .48111        .64467E-02   -.77551    
   3  Normalizat    1.0850        .65947E-01    .28404E-03   -.90235    
   4  Prefactor     .98917        .49796E-01    .22206E-03   -.93091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42099e-09
Minuit parameter uncertainties:
  1  0.613719
  2  0.482579
  3  0.0659516
  4  0.0497984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547637': 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) = 82079.179372
delta logL = 0.187870361377

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  7.439e-01  6.137e-01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.500e+00  4.826e-01  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  9.892e-01  4.980e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.085e+00  6.595e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.67
Ra Dec: 262.078 50.227
Photon Index (Free Index): 1.50 +/- 0.48
Photon Flux (Free Index): 2.43e-09 +/- 3.26e-09
Energy Flux (Free Index): 7.70e-06 +/- 7.17e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.003e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.113e+00 [aplpy.core]
Saving /scratch/kocevski/547637/cmap_HighResolution_353635201_356227201_4FGL_J1728.3+5013_monthly_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.31e-09', energy_flux2='7.70e-06', photon_flux_error='3.00e-09', dlogl='1.88e-01', energy_flux='5.56e-06', photon_flux2='2.43e-09', job_status='DONE', time_completed='2021-10-31 00:43:28.215772', photon_index_error2='0.48', photon_index2='1.50', ts='10.30', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='7.17e-06', EG='1.08', time_epoch_completed='1635666208.22', return_code='0', job_id='547637', GAL2='0.99', EG2='1.09', return_code2='0', energy_flux_error='3.87e-06', photon_flux_error2='3.26e-09', ts2='10.67', photon_index='1.78' WHERE bin_id='45' AND source_name='4FGL J1728.3+5013' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 31 00:43:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 547637: <4FGL_J1728.3+5013_monthly_bin45> in cluster <slac> Done

Job <4FGL_J1728.3+5013_monthly_bin45> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct 30 21:55:12 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 30 21:55:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 30 21:55:28 2021
Terminated at Sun Oct 31 00:43:29 2021
Results reported at Sun Oct 31 00:43:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.3+5013_monthly_bin45 262.078 50.2267 353635201 356227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1728.3+5013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9871.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             417.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10083 sec.
    Turnaround time :                            10097 sec.

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

