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


Performing analysis on: 4FGL_J1741.2+5739_daily_bin1230
RA = 265.323, Dec = 57.6587
tmin = 558144001, tmax = 558403201
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='10553', job_status='RUN', time_executed='2021-09-18 04:54:06.707214', time_epoch_executed='1631966046.71' WHERE source_name='4FGL J1741.2+5739' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10553/ft1_4FGL_J1741.2+5739_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10553/ft1_4FGL_J1741.2+5739_daily_bin1230.fits outfile=/scratch/kocevski/10553/ft1_filteredMKT_4FGL_J1741.2+5739_daily_bin1230.fits ra=265.323 dec=57.6587 rad=12.0 tmin=558144001.0 tmax=558403201.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 4.26
user 4.04
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.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/10553/ft1_filteredMKT_4FGL_J1741.2+5739_daily_bin1230.fits evtable="EVENTS" outfile="/scratch/kocevski/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/10553/ltcube_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.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/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits
.....................!
real 11.76
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/10553/ltcube_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.fits outfile=/scratch/kocevski/10553/expmap_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.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/10553/ltcube_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.fits
.....................!
real 192.44
user 188.12
sys 3.98

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

Setting source of interest to:
4FGL J1741.2+5739 @ 265.323 57.6587

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.fits scfile=/scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits outfile=/scratch/kocevski/10553/cmap_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.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.323 yref=57.6587 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.fits scfile=/scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits outfile=/scratch/kocevski/10553/cmap_HighResolution_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.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.323 yref=57.6587 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/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10553/Model_4FGL_J1741.2+5739_daily_bin1230.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/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.fits.............!
real 14.77
user 13.53
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.fits', '/scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits', expMap='/scratch/kocevski/10553/expmap_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.fits', expCube='/scratch/kocevski/10553/ltcube_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10553/Model_4FGL_J1741.2+5739_daily_bin1230.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1741.2+5739'

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  8.390e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10553/ft1_filtered_4FGL_J1741.2+5739_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/10553/ft2_4FGL_J1741.2+5739_daily_bin1230.fits
Exposure map: /scratch/kocevski/10553/expmap_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.fits
Exposure cube: /scratch/kocevski/10553/ltcube_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10553/Model_4FGL_J1741.2+5739_daily_bin1230.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 183.92931054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 182.346604382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7785       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3847       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19450E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0818       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3178       1.0000         .10000E-03   10000.    
     7 'norm      '    7.2056       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2319       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9625       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1004       1.0000         .10000E-03   10000.    
    15 'norm      '    .82110E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3176       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4174       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.3904       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11016       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4067       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0131       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .60983       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7270       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6503       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.0756       1.0000         .10000E-03   10000.    
    27 'norm      '    9.0448       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0333       1.0000         .10000E-03   10000.    
    29 'norm      '    118.28       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.6782       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.4820       1.0000         .10000E-03   10000.    
    32 'norm      '    2.7342       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .94182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   182.3218     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      291 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10042E-03    350.15        .44462E-05** at limit **
   2  Prefactor     2.7785        1.0172         .0000         .0000    
   3  norm          3.3847        1.0113         .0000         .0000    
   4  Prefactor     .10000E-03    25.930       -.10493E-05** at limit **
   5  Prefactor     .10000E-03    256.83       -.37390E-04** at limit **
   6  Prefactor     3.3178        1.0118         .0000         .0000    
   7  norm          7.2203        9.5753       -.22755E-05   -.20673E-04
   8  norm          1.2319        1.1237         .0000         .0000    
   9  Prefactor     2.9625        1.0150         .0000         .0000    
  10  Prefactor     5.6548        1.0040         .0000         .0000    
  11  Prefactor     1.9006        1.0396         .0000         .0000    
  12  Prefactor     2.2423        1.0273         .0000         .0000    
  13  Prefactor     48.129        48.218       -.57842E-05    .20129E-02
  14  Prefactor     5.1004        1.0049         .0000         .0000    
  15  norm          .10000E-03    45.320       -.23035E-05** at limit **
  16  Prefactor     .10000E-03    167.41        .18911E-05** at limit **
  17  Prefactor     .10000E-03    45.556       -.53929E-05** at limit **
  18  Prefactor     .33853E-03    529.54       -.15000E-04** at limit **
  19  Prefactor     8.3904        1.0018         .0000         .0000    
  20  Prefactor     .10000E-03    217.94       -.57939E-05** at limit **
  21  Prefactor     3.4067        1.0112         .0000         .0000    
  22  Prefactor     2.0131        1.0347         .0000         .0000    
  23  Prefactor     .10001E-03    445.78       -.30672E-04** at limit **
  24  Prefactor     1.7270        1.0496         .0000         .0000    
  25  Prefactor     6.6503        1.0029         .0000         .0000    
  26  Prefactor     4.0756        1.0077         .0000         .0000    
  27  norm          9.0448        1.0015         .0000         .0000    
  28  Prefactor     .21493E-02    247.20       -.16201E-04** at limit **
  29  norm          118.59        5.1337        .42149E-06    .16749E-02
  30  Prefactor     3.6782        1.0095         .0000         .0000    
  31  Prefactor     3.4820        1.0107         .0000         .0000    
  32  norm          2.7342        1.0178         .0000         .0000    
  33  Normalizat    .10000E-01    .79818       -.19865E-05** at limit **
  34  Prefactor     .94234        .55597        .17448E-05   -.74463E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100419
  Prefactor  = 2.77851
  norm       = 3.38474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31778
  norm       = 7.22032
  norm       = 1.23189
  Prefactor  = 2.96247
  Prefactor  = 5.65481
  Prefactor  = 1.90059
  Prefactor  = 2.24233
  Prefactor  = 48.1291
  Prefactor  = 5.10036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000338527
  Prefactor  = 8.39043
  Prefactor  = 0.000100004
  Prefactor  = 3.40672
  Prefactor  = 2.01312
  Prefactor  = 0.000100005
  Prefactor  = 1.72703
  Prefactor  = 6.6503
  Prefactor  = 4.07558
  norm       = 9.04483
  Prefactor  = 0.00214929
  norm       = 118.593
  Prefactor  = 3.67824
  Prefactor  = 3.48205
  norm       = 2.73421
  Normalizat = 0.01
  Prefactor  = 0.94234
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   182.3218     FROM HESSE     STATUS=FAILED        13 CALLS      304 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10042E-03    350.33        .43670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     557.34        554.47         .0000       -1.5375    
   3  norm          3.3847        1.0113         .0000       -1.5340    
   4  Prefactor     .10000E-03    .25638       -.10493E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .33467       -.37390E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3178        1.0118         .0000       -1.5344    
   7  norm          7.2203        1.0034       -.22755E-05   -1.5170    
   8  norm          1.2319        1.1237         .0000       -1.5486    
   9  Prefactor     2.9625        1.0150         .0000       -1.5364    
  10  Prefactor     5.6548        1.0040         .0000       -1.5232    
  11  Prefactor     1.9006        1.0396         .0000       -1.5432    
  12  Prefactor     2.2423        1.0273         .0000       -1.5408    
  13  Prefactor     48.129        1.0014       -.57842E-05   -1.4319    
  14  Prefactor     5.1004        1.0049         .0000       -1.5256    
  15  norm          .10000E-03    .22210       -.23035E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .22989        .18911E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .27574       -.53929E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33853E-03    .39222E-01   -.15000E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.3904        1.0018         .0000       -1.5129    
  20  Prefactor     .10000E-03    .22846       -.57939E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4067        1.0112         .0000       -1.5339    
  22  Prefactor     2.0131        1.0347         .0000       -1.5424    
  23  Prefactor     .10001E-03    .34288       -.30672E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.7270        1.0496         .0000       -1.5445    
  25  Prefactor     6.6503        1.0029         .0000       -1.5192    
  26  Prefactor     4.0756        1.0077         .0000       -1.5304    
  27  norm          9.0448        1.0015         .0000       -1.5106    
  28  Prefactor     .21493E-02    .84816E-01   -.16201E-04   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          118.59        1.0013        .42149E-06   -1.3526    
  30  Prefactor     3.6782        1.0095         .0000       -1.5324    
  31  Prefactor     3.4820        1.0107         .0000       -1.5335    
  32  norm          2.7342        1.0178         .0000       -1.5377    
  33  Normalizat    .10000E-01    .25755       -.19865E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .94234        1.2848        .17448E-05   -.94677    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.69877e-11
Minuit parameter uncertainties:
  1  0.024367
  2  1.01718
  3  1.01135
  4  2.3893e-07
  5  1.20996e-05
  6  1.01183
  7  1.00345
  8  1.12369
  9  1.015
  10  1.00396
  11  1.03964
  12  1.02732
  13  1.00139
  14  1.00489
  15  9.23214e-07
  16  7.58975e-06
  17  1.32295e-06
  18  0.00611734
  19  1.00179
  20  5.99523e-05
  21  1.0112
  22  1.03476
  23  8.5558e-05
  24  1.04964
  25  1.00285
  26  1.00773
  27  1.00154
  28  0.0263677
  29  1.00132
  30  1.00955
  31  1.0107
  32  1.01778
  33  8.01148e-09
  34  1.33035
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 182.321754031

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  8.390e+00  1.002e+00  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.423e-01  1.330e+00  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.000e-02  8.011e-09  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 265.323 57.659
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.72e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10553/likelihoodResults_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.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): 101
logL (Free Index) = 182.322229097
delta logL = -0.000475066440714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 182.322229097
delta logL = -0.000475066440714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.3782       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   182.3222     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.3782        1.0115        .23989         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.37818
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   182.3222     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .63342        1.8198        .23989       -.55197    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10553': 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): 101
logL (Free Index) = 182.322229097
delta logL = -0.000475066440714

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  8.390e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
365        Index:  2.378e+00  1.021e+00  0.000e+00  1.000e+01 (-1.000e+00)
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 265.323 57.659

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/10553/cmap_HighResolution_558144001_558403201_4FGL_J1741.2+5739_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.72e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-18 05:00:21.543784', job_id='10553', GAL2='0.94', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631966421.54', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.94', dlogl='-4.75e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1230' AND source_name='4FGL J1741.2+5739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 05:00:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 10553: <4FGL_J1741.2+5739_daily_bin1230> in cluster <slac> Done

Job <4FGL_J1741.2+5739_daily_bin1230> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 04:50:39 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 04:50: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 04:50:40 2021
Terminated at Sat Sep 18 05:00:22 2021
Results reported at Sat Sep 18 05:00:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1741.2+5739_daily_bin1230 265.323 57.6587 558144001 558403201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1741.2+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   334.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            583 sec.

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

