/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 175 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_J1740.5+5211_daily_bin658
RA = 265.136, Dec = 52.1927
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='983713', job_status='RUN', time_executed='2021-09-18 03:18:44.574766', time_epoch_executed='1631960324.57' WHERE source_name='4FGL J1740.5+5211' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983713

Creating custom pfile directory:
/scratch/kocevski/983713/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/983713/ft1_4FGL_J1740.5+5211_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/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983713/ft1_4FGL_J1740.5+5211_daily_bin658.fits outfile=/scratch/kocevski/983713/ft1_filteredMKT_4FGL_J1740.5+5211_daily_bin658.fits ra=265.136 dec=52.1927 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.21
user 5.95
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_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/983713/ft1_filteredMKT_4FGL_J1740.5+5211_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/983713/ft1_filtered_4FGL_J1740.5+5211_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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983713/ft1_filtered_4FGL_J1740.5+5211_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/983713/ltcube_409881601_410140801_4FGL_J1740.5+5211_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/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits
.....................!
real 11.96
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983713/ft1_filtered_4FGL_J1740.5+5211_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/983713/ltcube_409881601_410140801_4FGL_J1740.5+5211_daily_bin658.fits outfile=/scratch/kocevski/983713/expmap_409881601_410140801_4FGL_J1740.5+5211_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/983713/ltcube_409881601_410140801_4FGL_J1740.5+5211_daily_bin658.fits
.....................!
real 190.75
user 186.50
sys 3.92

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/983713/ft1_filtered_4FGL_J1740.5+5211_daily_bin658.fits scfile=/scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits outfile=/scratch/kocevski/983713/cmap_409881601_410140801_4FGL_J1740.5+5211_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=265.136 yref=52.1927 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983713/ft1_filtered_4FGL_J1740.5+5211_daily_bin658.fits scfile=/scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits outfile=/scratch/kocevski/983713/cmap_HighResolution_409881601_410140801_4FGL_J1740.5+5211_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=265.136 yref=52.1927 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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983713/ft1_filtered_4FGL_J1740.5+5211_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983713/Model_4FGL_J1740.5+5211_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/983713/ft1_filtered_4FGL_J1740.5+5211_daily_bin658.fits.....................!
real 41.23
user 39.96
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/983713/ft1_filtered_4FGL_J1740.5+5211_daily_bin658.fits', '/scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits', expMap='/scratch/kocevski/983713/expmap_409881601_410140801_4FGL_J1740.5+5211_daily_bin658.fits', expCube='/scratch/kocevski/983713/ltcube_409881601_410140801_4FGL_J1740.5+5211_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/983713/Model_4FGL_J1740.5+5211_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/983713/ft1_filtered_4FGL_J1740.5+5211_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/983713/ft2_4FGL_J1740.5+5211_daily_bin658.fits
Exposure map: /scratch/kocevski/983713/expmap_409881601_410140801_4FGL_J1740.5+5211_daily_bin658.fits
Exposure cube: /scratch/kocevski/983713/ltcube_409881601_410140801_4FGL_J1740.5+5211_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/983713/Model_4FGL_J1740.5+5211_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) = 3711.20410561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.213       1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.465       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2843       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .93672       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.884       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7558       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9247       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0699       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16182       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.964       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.290       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.3515       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.5757       1.0000         .10000E-03   10000.    
    29 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .42713       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0610       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3711.188     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4323 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    246.05        .11175E-04** at limit **
   2  Prefactor     11.212        10.835        .14254E-06   -.14138E-04
   3  Prefactor     59.232        31.280        .11565E-06   -.15316E-04
   4  Prefactor     .10000E-03    6.1584       -.10043E-06** at limit **
   5  Prefactor     25.142        36.347       -.74288E-07   -.62624E-04
   6  Prefactor     15.465        25.674        .24631E-06   -.37412E-05
   7  norm          2.2842        1.7588        .65087E-07    .11710E-03
   8  Prefactor     .10000E-03    12.549       -.99798E-06** at limit **
   9  norm          .93653        1.3127        .51846E-06    .36649E-03
  10  Prefactor     .10000E-03    3.4866       -.60804E-07** at limit **
  11  Prefactor     19.882        15.891        .20178E-06    .15250E-04
  12  norm          4.7559        3.4336        .21687E-06    .36614E-03
  13  Prefactor     6.9231        6.3958       -.69988E-07    .17493E-03
  14  Prefactor     .10000E-03    27.270        .40894E-06** at limit **
  15  norm          6.0647        10.993        .81475E-06    .23304E-03
  16  Prefactor     .10000E-03    194.83       -.63116E-05** at limit **
  17  Prefactor     .19159        10.141        .28452E-05   -.61189E-03
  18  Prefactor     28.904        84.076        .15530E-04    .42050E-04
  19  Prefactor     .10000E-03    70.647       -.46215E-05** at limit **
  20  Prefactor     .10000E-03    34.470       -.16595E-05** at limit **
  21  Prefactor     .10000E-03    63.982       -.13336E-05** at limit **
  22  Prefactor     .10000E-03    55.134        .45567E-05** at limit **
  23  norm          14.293        14.550        .55165E-06    .88261E-04
  24  Prefactor     8.3517        14.052        .10925E-05    .18564E-04
  25  Prefactor     .10000E-03    12.416        .71907E-06** at limit **
  26  norm          .10000E-03    14.251       -.33295E-06** at limit **
  27  Prefactor     .10000E-03    14.586        .19267E-06** at limit **
  28  norm          1.5747        33.049        .18264E-04    .86832E-04
  29  norm          .10000E-03    8.6129        .13061E-06** at limit **
  30  Prefactor     .10000E-03    2.7769        .75529E-07** at limit **
  31  Normalizat    .42723        .34979       -.31163E-06    .10737E-03
  32  Prefactor     1.0610        .21809       -.18907E-05    .29591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  Prefactor  = 11.2118
  Prefactor  = 59.2325
  Prefactor  = 0.0001
  Prefactor  = 25.1423
  Prefactor  = 15.4651
  norm       = 2.28416
  Prefactor  = 0.0001
  norm       = 0.936532
  Prefactor  = 0.0001
  Prefactor  = 19.8825
  norm       = 4.75593
  Prefactor  = 6.92307
  Prefactor  = 0.0001
  norm       = 6.06467
  Prefactor  = 0.000100001
  Prefactor  = 0.191592
  Prefactor  = 28.9039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 14.293
  Prefactor  = 8.35175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57472
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.427228
  Prefactor  = 1.06096
 **********
 **   18 **HESSE 
 **********

 FCN=   3711.188     FROM HESSE     STATUS=OK           655 CALLS     4978 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    247.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.212        10.807        .11964E-03   -1.5038    
   3  Prefactor     59.232        31.231        .52127E-04   -1.4167    
   4  Prefactor     .10000E-03    6.1884        .14721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.142        36.195        .79876E-04   -1.4705    
   6  Prefactor     15.465        25.659        .10185E-03   -1.4921    
   7  norm          2.2842        1.7511        .66876E-04   -1.5406    
   8  Prefactor     .10000E-03    12.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .93653        1.3094        .25880E-03   -1.5514    
  10  Prefactor     .10000E-03    3.4951        .11108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.882        15.875        .89822E-04   -1.4816    
  12  norm          4.7559        3.4091        .86833E-04   -1.5272    
  13  Prefactor     6.9231        6.3909        .13855E-03   -1.5182    
  14  Prefactor     .10000E-03    27.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0647        10.977        .16296E-03   -1.5215    
  16  Prefactor     .10000E-03    195.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19159        46.744        .31548E-02   -1.5620    
  18  Prefactor     28.904        86.493        .74444E-04   -1.4632    
  19  Prefactor     .10000E-03    70.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    66.389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    54.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.293        14.511        .10595E-03   -1.4952    
  24  Prefactor     8.3517        14.035        .69361E-03   -1.5130    
  25  Prefactor     .10000E-03    12.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    14.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.5747        33.867        .16925E-02   -1.5457    
  29  norm          .10000E-03    8.6227        .17462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.8059        .99083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .42723        .36012        .45380E-03   -1.1592    
  32  Prefactor     1.0610        .23128        .20082E-03   -.90724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92583e-09
Minuit parameter uncertainties:
  1  0.00217093
  2  10.8088
  3  31.2401
  4  1.13022e-05
  5  36.2262
  6  25.6773
  7  1.75114
  8  2.70835e-06
  9  1.30946
  10  5.28173e-06
  11  15.8788
  12  3.4092
  13  6.39154
  14  2.0576e-05
  15  10.9808
  16  0.000935388
  17  5.9884
  18  86.8712
  19  7.4931e-05
  20  5.55907e-05
  21  1.69597e-05
  22  0.000572163
  23  14.5142
  24  14.0405
  25  6.15411e-05
  26  3.65803e-05
  27  8.22543e-06
  28  14.6145
  29  3.48388e-06
  30  5.3774e-06
  31  0.362101
  32  0.231502
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  1.916e-01  5.988e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.061e+00  2.315e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  4.272e-01  3.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 265.136 52.193
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983713/likelihoodResults_409881601_410140801_4FGL_J1740.5+5211_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): 102
logL (Free Index) = 3711.18587728
delta logL = 0.00183635151552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3711.18201547
delta logL = 0.00569816275492

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3711.182     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      285 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69632        15.392        .44514E-03   -.21198E-05
   2  Index         2.1031        2.4566        .19679E-01   -.39285E-06
   3  Normalizat    .42751        .32644        .45364E-03   -.22555E-05
   4  Prefactor     1.0598        .22439        .20091E-03   -.81767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.696322
  Index      = 2.1031
  Normalizat = 0.427508
  Prefactor  = 1.05978
 **********
 **   18 **HESSE 
 **********

 FCN=   3711.182     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69632        14.829        .17805E-04   -1.5541    
   2  Index         2.1031        2.4199        .78715E-03   -.61797    
   3  Normalizat    .42751        .32652        .18146E-04   -1.1590    
   4  Prefactor     1.0598        .22441        .80364E-05   -.90763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57604e-13
Minuit parameter uncertainties:
  1  6.42806
  2  2.59099
  3  0.327987
  4  0.224608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983713': 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) = 3711.18201442
delta logL = 0.00569920714452

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  6.963e-01  6.428e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  2.103e+00  2.591e+00  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.060e+00  2.246e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  4.275e-01  3.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 265.136 52.193

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/983713/cmap_HighResolution_409881601_410140801_4FGL_J1740.5+5211_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-18 03:30:57.277388', job_id='983713', GAL2='1.06', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1631961057.28', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.70e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='658' AND source_name='4FGL J1740.5+5211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 03:30:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 983713: <4FGL_J1740.5+5211_daily_bin658> in cluster <slac> Done

Job <4FGL_J1740.5+5211_daily_bin658> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 18 03:15:39 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 03:15:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 03:15:40 2021
Terminated at Sat Sep 18 03:30:58 2021
Results reported at Sat Sep 18 03:30:58 2021

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

