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


Performing analysis on: 4FGL_J1727.4+4530_daily_bin658
RA = 261.852, Dec = 45.5108
tmin = 409881601, tmax = 410140801
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='719577', job_status='RUN', time_executed='2021-09-17 11:25:46.505466', time_epoch_executed='1631903146.51' WHERE source_name='4FGL J1727.4+4530' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719577

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719577/ft1_4FGL_J1727.4+4530_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719577/ft1_4FGL_J1727.4+4530_daily_bin658.fits outfile=/scratch/kocevski/719577/ft1_filteredMKT_4FGL_J1727.4+4530_daily_bin658.fits ra=261.852 dec=45.5108 rad=12.0 tmin=409881601.0 tmax=410140801.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.27
user 6.01
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.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/719577/ft1_filteredMKT_4FGL_J1727.4+4530_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/719577/ltcube_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.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/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits
.....................!
real 12.43
user 12.11
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/719577/ltcube_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.fits outfile=/scratch/kocevski/719577/expmap_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.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/719577/ltcube_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.fits
.....................!
real 192.28
user 186.76
sys 5.15

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

Setting source of interest to:
4FGL J1727.4+4530 @ 261.852 45.5108

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.fits scfile=/scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits outfile=/scratch/kocevski/719577/cmap_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.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=261.852 yref=45.5108 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.fits scfile=/scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits outfile=/scratch/kocevski/719577/cmap_HighResolution_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.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=261.852 yref=45.5108 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/719577/Model_4FGL_J1727.4+4530_daily_bin658.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/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.fits....................!
real 46.97
user 45.66
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.fits', '/scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits', expMap='/scratch/kocevski/719577/expmap_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.fits', expCube='/scratch/kocevski/719577/ltcube_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/719577/Model_4FGL_J1727.4+4530_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1727.4+4530'

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  2.304e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
328        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  8.376e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  4.339e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/719577/ft1_filtered_4FGL_J1727.4+4530_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/719577/ft2_4FGL_J1727.4+4530_daily_bin658.fits
Exposure map: /scratch/kocevski/719577/expmap_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.fits
Exposure cube: /scratch/kocevski/719577/ltcube_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/719577/Model_4FGL_J1727.4+4530_daily_bin658.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) = 4801.24425974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10288E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9607       1.0000         .10000E-03   10000.    
     5 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3429       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3919       1.0000         .10000E-03   10000.    
    11 'norm      '    7.1165       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8948       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30613       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9959       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4412       1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.054       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5609       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20228E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7874       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    20.470       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9.1693       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1687       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4801.127     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4585 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9803       -.78533E-08** at limit **
   2  norm          .10000E-03    43.480       -.18305E-05** at limit **
   3  norm          .10000E-03    7.1133       -.25972E-06** at limit **
   4  Prefactor     4.9636        8.6869        .42789E-06    .13262E-05
   5  norm          .10000E-03    27.969        .17042E-05** at limit **
   6  Prefactor     .10000E-03    1.5253       -.22034E-07** at limit **
   7  Prefactor     1.3430        1.7024        .69302E-07    .50644E-04
   8  Prefactor     .10000E-03    5.3401        .10033E-05** at limit **
   9  Prefactor     4.4508        4.3154        .28991E-07   -.19785E-04
  10  Prefactor     8.4691        35.157       -.69095E-05   -.60081E-04
  11  norm          7.1168        2.4350        .15109E-07   -.86163E-05
  12  norm          1.8951        1.6304        .11436E-06    .45427E-04
  13  Prefactor     .10000E-03    7.7863        .23529E-06** at limit **
  14  norm          .30605        1.1707        .18339E-06    .11928E-04
  15  norm          .10000E-03    7.3634        .12139E-06** at limit **
  16  norm          2.9969        2.8697        .58515E-07   -.44765E-04
  17  Prefactor     6.4394        5.9551       -.41111E-06   -.92445E-04
  18  Prefactor     57.017        45.911        .25602E-05    .48400E-04
  19  norm          .10000E-03    1.6433       -.80989E-07** at limit **
  20  Prefactor     .10000E-03    24.221       -.14812E-06** at limit **
  21  norm          2.5578        9.5544        .50103E-05    .19275E-03
  22  Prefactor     .10000E-03    103.73       -.82196E-06** at limit **
  23  Prefactor     .10010E-03    7.0759        .24877E-05** at limit **
  24  Prefactor     4.7581        296.06        .10003E-04   -.21987E-04
  25  Prefactor     .10000E-03    26.973        .15787E-05** at limit **
  26  Prefactor     .10000E-03    13.862        .71841E-06** at limit **
  27  norm          20.408        129.38        .11186E-04    .14739E-04
  28  Prefactor     .10000E-03    36.416        .10193E-05** at limit **
  29  norm          9.1708        13.545        .60447E-07   -.25193E-04
  30  Prefactor     .10000E-03    10.124       -.38269E-06** at limit **
  31  norm          .10000E-03    22.417       -.67981E-06** at limit **
  32  Normalizat    1.1681        .28116       -.26155E-05   -.94026E-04
  33  Prefactor     .89172        .17720        .10226E-05   -.85861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.96361
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34303
  Prefactor  = 0.0001
  Prefactor  = 4.4508
  Prefactor  = 8.46908
  norm       = 7.11685
  norm       = 1.89514
  Prefactor  = 0.0001
  norm       = 0.306052
  norm       = 0.0001
  norm       = 2.99688
  Prefactor  = 6.43937
  Prefactor  = 57.0171
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55779
  Prefactor  = 0.0001
  Prefactor  = 0.000100103
  Prefactor  = 4.75813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.4079
  Prefactor  = 0.0001
  norm       = 9.17076
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.16809
  Prefactor  = 0.891724
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.127     FROM HESSE     STATUS=OK           695 CALLS     5280 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0083        .13497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    43.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.1138        .18050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9636        8.6802        .18057E-03   -1.5262    
   5  norm          .10000E-03    27.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1319        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3430        1.4705        .84476E-04   -1.5476    
   8  Prefactor     .10000E-03    5.4069        .15669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4508        4.2967        .13443E-03   -1.5286    
  10  Prefactor     8.4691        35.666        .13839E-03   -1.5126    
  11  norm          7.1168        2.4325        .60744E-04   -1.5174    
  12  norm          1.8951        1.6229        .78188E-04   -1.5433    
  13  Prefactor     .10000E-03    7.8137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30605        1.1662        .13388E-03   -1.5597    
  15  norm          .10000E-03    7.4298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9969        2.8438        .10750E-03   -1.5362    
  17  Prefactor     6.4394        5.9617        .15296E-03   -1.5200    
  18  Prefactor     57.017        45.962        .26555E-03   -1.4196    
  19  norm          .10000E-03    1.6458        .86737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5578        9.7162        .12755E-02   -1.5388    
  22  Prefactor     .10000E-03    104.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10010E-03    20.812        .30485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.7581        280.01        .18388E-03   -1.5272    
  25  Prefactor     .10000E-03    26.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          20.408        130.21        .88527E-04   -1.4804    
  28  Prefactor     .10000E-03    36.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          9.1708        13.541        .13236E-03   -1.5102    
  30  Prefactor     .10000E-03    10.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    22.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1681        .33747        .30797E-03   -.87595    
  33  Prefactor     .89172        .21491        .22693E-03   -.96431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.229e-09
Minuit parameter uncertainties:
  1  1.05646e-06
  2  3.44586e-05
  3  5.32482e-06
  4  8.68238
  5  7.289e-05
  6  1.99559e-06
  7  1.47052
  8  9.34237e-05
  9  4.29701
  10  34.7949
  11  2.43252
  12  1.62295
  13  4.90708e-06
  14  1.16632
  15  8.2094e-06
  16  2.84388
  17  5.96222
  18  45.9904
  19  4.97691e-06
  20  1.94554e-05
  21  9.72221
  22  3.61738e-05
  23  0.00293103
  24  73.3639
  25  6.71043e-05
  26  1.49316e-05
  27  103.429
  28  3.07288e-05
  29  13.5453
  30  1.1212e-05
  31  4.03924e-06
  32  0.338097
  33  0.215116
Done.

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

Extracting fit parameters...

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  2.997e+00  2.844e+00  1.000e-04  1.000e+04 ( 1.000e-11)
328        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  8.376e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  4.339e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  8.917e-01  2.151e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  1.168e+00  3.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 261.852 45.511
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 6.25e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.87e-05

TS (Fixed Index): 1.84
Ra Dec: 261.852 45.511
Photon Flux Upper Limit: 2.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/719577/likelihoodResults_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.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): 0
logL (Free Index) = 4801.1262778
delta logL = 0.000222715846576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4801.12626485
delta logL = 0.000235665319451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9971       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4101       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4801.126     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      193 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0195        4.2327        .58618E-02    .56783E-03
   2  alpha         2.4141        1.1932        .41185       -.38675E-04
   3  Normalizat    1.1661        .26795        .69654E-01   -.69386E-04
   4  Prefactor     .89255        .17447        .44908E-01   -.98348E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01952
  alpha      = 2.41411
  Normalizat = 1.16612
  Prefactor  = 0.892552
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.126     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0195        2.9318        .10738E-03   -1.5360    
   2  alpha         2.4141        1.0345        .21901E-01   -.34361E-01
   3  Normalizat    1.1661        .33181        .30820E-03   -.87656    
   4  Prefactor     .89255        .21245        .22683E-03   -.96402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25143e-10
Minuit parameter uncertainties:
  1  2.93194
  2  1.06656
  3  0.33241
  4  0.21265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719577': 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) = 4801.12623553
delta logL = 0.000264982570116

Extracting fit parameters...

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  3.020e+00  2.932e+00  1.000e-04  1.000e+04 ( 1.000e-11)
328        alpha:  2.414e+00  1.067e+00  0.000e+00  5.000e+00 ( 1.000e+00)
329         beta:  8.376e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  4.339e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  8.926e-01  2.127e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  1.166e+00  3.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 261.852 45.511
Photon Index (Free Index): 2.41 +/- 1.07
Photon Flux (Free Index): 6.77e-08 +/- 9.57e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/719577/cmap_HighResolution_409881601_410140801_4FGL_J1727.4+4530_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-05', comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='1.97e-05', photon_flux_error='6.25e-08', dlogl='2.65e-04', energy_flux='1.97e-05', photon_flux2='6.77e-08', job_status='DONE', time_completed='2021-09-17 11:40:12.848809', photon_index_error2='1.07', photon_index2='2.41', ts='1.84', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='2.08e-07', energy_flux_error2='1.86e-05', EG='1.17', time_epoch_completed='1631904012.85', return_code='0', job_id='719577', GAL2='0.89', EG2='1.17', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='9.57e-08', ts2='1.84', photon_index='2.39' WHERE bin_id='658' AND source_name='4FGL J1727.4+4530' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 11:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 719577: <4FGL_J1727.4+4530_daily_bin658> in cluster <slac> Done

Job <4FGL_J1727.4+4530_daily_bin658> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 17 11:25:28 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 11:25: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:25:30 2021
Terminated at Fri Sep 17 11:40:13 2021
Results reported at Fri Sep 17 11:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1727.4+4530_daily_bin658 261.852 45.5108 409881601 410140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1727.4+4530 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   862.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

