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


Performing analysis on: 4FGL_J1727.4+4530_daily_bin780
RA = 261.852, Dec = 45.5108
tmin = 441504001, tmax = 441763201
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='719755', job_status='RUN', time_executed='2021-09-17 11:25:55.413354', time_epoch_executed='1631903155.41' WHERE source_name='4FGL J1727.4+4530' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719755

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719755/ft1_4FGL_J1727.4+4530_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719755/ft2_4FGL_J1727.4+4530_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719755/ft1_4FGL_J1727.4+4530_daily_bin780.fits outfile=/scratch/kocevski/719755/ft1_filteredMKT_4FGL_J1727.4+4530_daily_bin780.fits ra=261.852 dec=45.5108 rad=12.0 tmin=441504001.0 tmax=441763201.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.56
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719755/ft2_4FGL_J1727.4+4530_daily_bin780.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/719755/ft1_filteredMKT_4FGL_J1727.4+4530_daily_bin780.fits evtable="EVENTS" outfile="/scratch/kocevski/719755/ft1_filtered_4FGL_J1727.4+4530_daily_bin780.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/719755/ft1_filtered_4FGL_J1727.4+4530_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/719755/ft2_4FGL_J1727.4+4530_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/719755/ltcube_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.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/719755/ft2_4FGL_J1727.4+4530_daily_bin780.fits
.....................!
real 11.95
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719755/ft1_filtered_4FGL_J1727.4+4530_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/719755/ft2_4FGL_J1727.4+4530_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/719755/ltcube_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.fits outfile=/scratch/kocevski/719755/expmap_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.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/719755/ltcube_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.fits
.....................!
real 193.62
user 188.47
sys 4.77

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/719755/ft1_filtered_4FGL_J1727.4+4530_daily_bin780.fits scfile=/scratch/kocevski/719755/ft2_4FGL_J1727.4+4530_daily_bin780.fits outfile=/scratch/kocevski/719755/cmap_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719755/ft1_filtered_4FGL_J1727.4+4530_daily_bin780.fits scfile=/scratch/kocevski/719755/ft2_4FGL_J1727.4+4530_daily_bin780.fits outfile=/scratch/kocevski/719755/cmap_HighResolution_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/719755/ft1_filtered_4FGL_J1727.4+4530_daily_bin780.fits', '/scratch/kocevski/719755/ft2_4FGL_J1727.4+4530_daily_bin780.fits', expMap='/scratch/kocevski/719755/expmap_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.fits', expCube='/scratch/kocevski/719755/ltcube_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/719755/Model_4FGL_J1727.4+4530_daily_bin780.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/719755/ft1_filtered_4FGL_J1727.4+4530_daily_bin780.fits
Spacecraft file(s): /scratch/kocevski/719755/ft2_4FGL_J1727.4+4530_daily_bin780.fits
Exposure map: /scratch/kocevski/719755/expmap_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.fits
Exposure cube: /scratch/kocevski/719755/ltcube_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/719755/Model_4FGL_J1727.4+4530_daily_bin780.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) = 6664.09882964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0383       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0011       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .93011       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0366       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11298E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6669       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1675       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8704       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4049       1.0000         .10000E-03   10000.    
    15 'norm      '    .11585E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.264       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    151.87       1.0000         .10000E-03   10000.    
    21 'norm      '    .11134E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4709       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.9865       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .54062E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .18323E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    11.837       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1149       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82413       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=   6664.089     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     4711 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8194        .10355E-07** at limit **
   2  norm          .10000E-03    11.386       -.53682E-06** at limit **
   3  norm          .10000E-03    14.375        .20652E-05** at limit **
   4  Prefactor     1.0352        3.9025        .11978E-05   -.34539E-03
   5  norm          .10000E-03    12.694       -.84532E-06** at limit **
   6  Prefactor     1.0011        .87336        .94436E-08   -.29238E-05
   7  Prefactor     .93010        .95495        .45744E-07   -.95465E-04
   8  Prefactor     2.0403        4.3402       -.35615E-06   -.32218E-03
   9  Prefactor     .10000E-03    1.4716        .40684E-07** at limit **
  10  Prefactor     5.6611        12.031        .35681E-05   -.53793E-03
  11  norm          2.1674        1.2014       -.16884E-08    .28038E-04
  12  norm          1.8699        1.0907        .68997E-07   -.81579E-03
  13  Prefactor     .10000E-03    5.7408       -.55497E-07** at limit **
  14  norm          1.4047        .75858        .21880E-07   -.24335E-04
  15  norm          .10002E-03    5.0967       -.34876E-06** at limit **
  16  norm          2.0058        1.4550        .38027E-07   -.25429E-04
  17  Prefactor     .10000E-03    1.6801        .35459E-07** at limit **
  18  Prefactor     24.264        53.089        .25099E-06   -.15745E-04
  19  norm          .10000E-03    1.9315       -.11718E-07** at limit **
  20  Prefactor     151.87        79.049       -.70728E-06   -.93464E-04
  21  norm          .10000E-03    12.731        .19519E-06** at limit **
  22  Prefactor     .10000E-03    29.538       -.83511E-06** at limit **
  23  Prefactor     7.4715        5.2135        .11217E-05    .10080E-02
  24  Prefactor     .10000E-03    26.433       -.17544E-05** at limit **
  25  Prefactor     .10000E-03    70.897       -.22173E-05** at limit **
  26  Prefactor     8.9875        8.3787        .35482E-07   -.26903E-04
  27  norm          .10001E-03    34.016        .46645E-05** at limit **
  28  Prefactor     .10000E-03    12.561        .15901E-07** at limit **
  29  norm          .10000E-03    4.8554        .60584E-07** at limit **
  30  Prefactor     .10000E-03    8.7911        .31275E-06** at limit **
  31  norm          11.838        8.7679        .50376E-07   -.21408E-04
  32  Normalizat    1.1150        .20678       -.10880E-05    .16810E-04
  33  Prefactor     .82399        .13888       -.84832E-07   -.34548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.03521
  norm       = 0.0001
  Prefactor  = 1.00112
  Prefactor  = 0.930097
  Prefactor  = 2.04027
  Prefactor  = 0.0001
  Prefactor  = 5.66111
  norm       = 2.16738
  norm       = 1.86994
  Prefactor  = 0.0001
  norm       = 1.40469
  norm       = 0.000100016
  norm       = 2.00579
  Prefactor  = 0.0001
  Prefactor  = 24.2637
  norm       = 0.0001
  Prefactor  = 151.865
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.47147
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 8.98747
  norm       = 0.000100008
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 11.8379
  Normalizat = 1.11503
  Prefactor  = 0.823989
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.089     FROM HESSE     STATUS=OK           705 CALLS     5416 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8402        .10751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0352        3.9589        .29239E-03   -1.5504    
   5  norm          .10000E-03    12.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0011        .87669        .61296E-03   -1.5508    
   7  Prefactor     .93010        .95671        .69119E-03   -1.5515    
   8  Prefactor     2.0403        4.2738        .21120E-03   -1.5422    
   9  Prefactor     .10000E-03    2.8332        .19060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6611        13.190        .84371E-03   -1.5232    
  11  norm          2.1674        1.2055        .64676E-04   -1.5414    
  12  norm          1.8699        1.0860        .15227E-03   -1.5434    
  13  Prefactor     .10000E-03    5.8191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4047        .75785        .50113E-04   -1.5471    
  15  norm          .10002E-03    23.565        .35127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0058        1.4508        .80537E-04   -1.5425    
  17  Prefactor     .10000E-03    1.6920        .10331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.264        53.001        .81320E-04   -1.4722    
  19  norm          .10000E-03    1.9351        .11070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     151.87        79.106        .32708E-04   -1.3237    
  21  norm          .10000E-03    13.239        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.4715        5.3836        .14673E-03   -1.5161    
  24  Prefactor     .10000E-03    26.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    71.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.9875        8.3479        .13370E-03   -1.5108    
  27  norm          .10001E-03    35.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    93.152        .56268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    29.829        .34581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.8245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          11.838        8.7734        .11644E-03   -1.5020    
  32  Normalizat    1.1150        .24673        .27152E-03   -.89271    
  33  Prefactor     .82399        .16663        .22315E-03   -.98850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00203e-09
Minuit parameter uncertainties:
  1  1.0111e-06
  2  6.68594e-05
  3  0.00029596
  4  3.95987
  5  0.000113957
  6  0.8767
  7  0.956725
  8  4.27447
  9  5.65368e-06
  10  13.1966
  11  1.20548
  12  1.08604
  13  2.74709e-06
  14  0.757857
  15  0.00123082
  16  1.45084
  17  3.34126e-06
  18  53.1044
  19  5.10413e-06
  20  79.1609
  21  0.000136309
  22  0.000179892
  23  5.38394
  24  0.000404506
  25  0.000741769
  26  8.349
  27  0.00105627
  28  0.000482742
  29  0.00047223
  30  2.72748e-05
  31  8.7744
  32  0.246987
  33  0.166734
Done.

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

Extracting fit parameters...

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  2.006e+00  1.451e+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.240e-01  1.667e-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.115e+00  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.68
Ra Dec: 261.852 45.511
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 9.53e-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) = 6663.67317277
delta logL = 0.415522895798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6663.65131903
delta logL = 0.437376630992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7043       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7718       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81436       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=   6663.651     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7038        1.2851        .80533E-02    .80292E-04
   2  alpha         1.7714        .44823        .39976       -.35460E-04
   3  Normalizat    1.1372        .19026        .60870E-01    .10315E-04
   4  Prefactor     .81435        .13699        .43904E-01    .10264E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70382
  alpha      = 1.7714
  Normalizat = 1.1372
  Prefactor  = 0.814352
 **********
 **   18 **HESSE 
 **********

 FCN=   6663.651     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7038        1.5023        .78028E-04   -1.5447    
   2  alpha         1.7714        .61507        .14996E-01   -.29573    
   3  Normalizat    1.1372        .22630        .26922E-03   -.88566    
   4  Prefactor     .81435        .16283        .22433E-03   -.99201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.641e-12
Minuit parameter uncertainties:
  1  1.50236
  2  0.622063
  3  0.226497
  4  0.162931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719755': 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) = 6663.65131879
delta logL = 0.437376873135

Extracting fit parameters...

4FGL J1727.4+4530
   Spectrum: LogParabola
327         norm:  1.704e+00  1.502e+00  1.000e-04  1.000e+04 ( 1.000e-11)
328        alpha:  1.771e+00  6.221e-01  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.144e-01  1.629e-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.137e+00  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 261.852 45.511
Photon Index (Free Index): 1.77 +/- 0.62
Photon Flux (Free Index): 2.66e-08 +/- 2.65e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/719755/cmap_HighResolution_441504001_441763201_4FGL_J1727.4+4530_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='1.90e-05', photon_flux_error='3.19e-08', dlogl='4.37e-01', energy_flux='1.32e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-09-17 11:41:57.724671', photon_index_error2='0.62', photon_index2='1.77', ts='4.68', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='1.12', time_epoch_completed='1631904117.72', return_code='0', job_id='719755', GAL2='0.81', EG2='1.14', return_code2='0', energy_flux_error='9.53e-06', photon_flux_error2='2.65e-08', ts2='5.52', photon_index='2.39' WHERE bin_id='780' AND source_name='4FGL J1727.4+4530' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 11:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 719755: <4FGL_J1727.4+4530_daily_bin780> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1727.4+4530_daily_bin780 261.852 45.5108 441504001 441763201 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 :                                   959.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

